Coding to control Pixel LED's
This shows you how to switch all the LED's to a single colour or put a rainbow across a strip. This code sets the pixels up at startup and tells the microbit there are 50 LED pixels. When pressing button A it displays a simple image on the 5x5 LED grid and then flashes the pixels from yellow to red. When pressing button B it puts a rainbow pattern across the pixels.
|
|
Putting a pattern on the Pixel LED's
This shows you how to put a simple pattern on an LED strip. The number of pixels are set up at the start and then it makes all the LED's red, moving a white colour across them.
|