In this workshop, we’ll build a pixel editor program for micro:bit that allows us to draw our own icons on the micro:bit screen. Using the block-based ‘makecode’ language, we’ll create a cursor that can be used to select pixels on the screen and turn them on or off. This project gives learners the opportunity to work with variables, conditional statements and loops. This same project can be extended to create a basic rhythm sequencer, where the micro:bit will scroll through each pixel and play a tone for each pixel that is highlighted. If you have a micro:bit or micro:bit v2 you can use it for this project, but if you don’t there is a simulator on makecode.microbit.org that you can use for this session.
Resource: PixelEditor Project – Step-By-Step