Source Code
Note: before setting the test code, you need to add the libraries. Follow the instructions below:
Open the micro:bit Software MakeCode editor
https://makecode.micro:bit.org/
Click to add "New Project", then
you will see the interface below:
94