Data Sheet
10
When button A is pressed, light up all the pixels
red.
When button B is pressed, clear the LED’s
represented by the variable ‘Pixel Array’. This
will turn them off.
WHAT THIS MEANS
WHAT THIS MEANS
STEP 9: Download!
STEP 11: Try changing the code to make a different colour.
STEP 10: Press A and get ready for the lights!
Plug the BBC micro:bit into a USB port then drag and drop the
The program will automatically run on the simulator. Click on the ‘A’ button on
the simulator to see the LED pattern. Click on ‘B’ button to clear the pattern.