Keyestudio 4WD Manual page 237

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

Advertisement

www.keyestudio.com
"on start": command block runs once to start program.
Set strip to Neopixel at pin p8 with 4 leads as RGB(GRB format)
Set variable R to 0
Set variable G to 0
Set variable B to 0
The program under the block"forever"runs cyclically.
When the value of index is in 0-3, execute the program under do block
Set variable R to random number in 10-255
Set variable G to random number in 10-255
Set variable B to random number in 10-255
Turn off all RGB on strip
Set index of 4 pcs WS2812 RGB lights to RGB(red, green, blue)
Delay in 500ms
Strip shows
Click " JavaScript"
code:
(4)Test Results:
to
switch
into
the
corresponding
JavaScript
237

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents