Keyestudio 4WD Manual page 276

Mecanum robot car
Hide thumbs Also See for 4WD:
Table of Contents

Advertisement

www.keyestudio.com
① The "on start" command block runs only once to s
program.
②Set the variable LL to 0
③Set variable RR to 0
④ In the "forever" instruction block, the progra
cyclically.
⑤ Set the variable LL to the digital signal read on
(1/0)
⑥Set the variable RR to the digital signal read on t
(1/0)
⑦ When the variables LL=0 and RR=1 are esta
execute the program under then
⑧The left side of the LED dot matrix displays the "←"
⑨ When the variables LL=1 and RR=0 are esta
execute the program under then
⑩ The " → " pattern is displayed on the left of the
matrix
⑪ When the variables LL=0 and RR=0 are esta
execute the program under then
⑫The "×" pattern is displayed on the left side of the
matrix
⑬ When the above conditions are not met, exec
program under else
Click"JavaScript" to view the corresponding JavaScript code: :
276

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents