EasyManua.ls Logo

Keyestudio 4WD - Page 237

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...
237
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" to switch into the corresponding JavaScript
code:
(4)Test Results:

Related product manuals