EasyManua.ls Logo

Keyestudio 4WD - Page 276

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...
276
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 variable LL to 0
③Set variable RR to 0
In the "forever" instruction block, the program runs
cyclically.
Set the variable LL to the digital signal read on the left
(1/0)
Set the variable RR to the digital signal read on the right
(1/0)
When the variables LL=0 and RR=1 are established,
execute the program under then
⑧The left side of the LED dot matrix displays the "←" pattern
When the variables LL=1 and RR=0 are established,
execute the program under then
The " " pattern is displayed on the left of the LED dot
matrix
When the variables LL=0 and RR=0 are established,
execute the program under then
The " pattern is displayed on the left side of the LED dot
matrix
When the above conditions are not met, execute the
program under else

Related product manuals