EasyManuals Logo

SunFounder ESP32 User Manual

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #593 background imageLoading...
Page #593 background image
SunFounder ESP32 Starter Kit
Next, in the [forever] block, four [if] blocks are used to determine various possible scenarios.
• If the button is 1 (pressed), use the [mod] block to toggle the value of the variable flag between 0 and 1 (alternating
between 0 for this press and 1 for the next press).
• If flag=0 (this button press), let the Beetle sprite turn clockwise. Then determine if flag is equal to 1 (button
pressed again), the Beetle sprite moves forward. Otherwise, it keeps turning clockwise.
4.17. 2.14 GAME - Eat Apple 587

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SunFounder ESP32 and is the answer not in the manual?

SunFounder ESP32 Specifications

General IconGeneral
BrandSunFounder
ModelESP32
CategoryController
LanguageEnglish