Open this page at https://nicolashenschel.github.io/microbittraficlight/
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/nicolashenschel/microbittraficlight and import
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/nicolashenschel/microbittraficlight and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/microbit
Connect red, yellow and green diodes to the MicroBit
Diodes lights up in turns. Start by pressing the A button, the time the lights are on is increased by pressing the B-Button, reset time by pressing A+B.