Quick Start Coding
The code below displays a simple program to get you started with MakeCode and the Bright Board coding blocks. This program displays a rotating rainbow on the Bright Board LEDs.
In the “on start” code block, the program sets a brightness of 128 (out of a maximum of 255) and saves a rainbow pattern to the micro:bit memory buffer. This rainbow pattern doesn’t get displayed until a “show” code block gets called in the “forever” loop. Inside the “forever” loop, the “show” block makes the rainbow pattern visible on the BrightBoard LEDs, and
Click the “Edit” link in the program window below to visit the MakeCode editor and experiment with making different changes to the program as well as downloading the code to your own micro:bit. The MakeCode editor window you reach from this link already has the Bright Board extension code blocks installed, so you can simply add or remove blocks to create your own original program.
If you’d like instructions on how to transfer the code from the editor to your micro:bit, this micro:bit Quick Start Guide will show you how.