EasyManua.ls Logo

SunFounder PiSloth - Page 36

SunFounder PiSloth
113 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder pisloth
in it.
Button () get value: This block is used to read the value of the buttons, if the button is pressed, the value is 1,
otherwise it is 0.
Button () is (press/release): This block and Button () get value = (0/1) have the same effect and
can be used directly to determine whether a button is pressed or not.
D-pad () get () value: This block is used to read the up/down/left/right (selected through the drop-down menu)
pad values, press for 1 and release for 0.
EXAMPLE
Note:
You can write the program according to the following picture, please refer to the tutorial: How to Create a New
Project?
Or find the code with the same name on the Examples page of the EzBlock Studio and click Run or Edit directly.
32 Chapter 3. Play with Ezblock

Related product manuals