www.keyestudio.com
File Type
Hex file
KS4031(4032) folder/Makecode
Tutorial/Makecode Code/Project
14:WS2812 RGB LEDs-1.hex
Or you could edit code step by step in the editing area.
a. Enter"Neopixel" →"set strip to Neopixel at pin P0 with 24 leds as RGB
(GRB format)"
b. Place it into"on start"block,
c. Signal end P8 of WS2812 RGB is controlled by P8 of micro:bit . So we set
to P8.
d. Smart car has 4 pcs WS2812 RGB lights, so set to 4 leads
Click"Neopixel"to move block"strip clear"into"on start"block.
Path
File Name
Project 14:WS2812
RGB LEDs-1.hex
216