EasyManua.ls Logo

Keyestudio 4WD - Page 245

Keyestudio 4WD
369 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...
245
www.keyestudio.com
Click“JavaScript" to view the corresponding JavaScript code:
The "on start" command block runs only once to
start the program.
②Set the initial value of the angle variable to 0.
In the "forever" command box, the program runs
cyclically
④Cycle 180 times
⑤Rotate the servo to angle
Angle variable increases 1
Delay in 10ms
Cycle 180 times
⑨The servo rotates to angle
⑩Angle angle variable minus 1
Delay in 10ms

Related product manuals