EasyManua.ls Logo

SunFounder PiSloth - Page 32

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
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.
After the code is run, PiSloth will continuously detect the distance of the obstacle, when the distance is between 5 and
40, PiSloth will make a roaring sound and rush forward; when the distance of the obstacle is less than 5, PiSloth will
stop.
28 Chapter 3. Play with Ezblock

Related product manuals