Open this page at https://texnic.github.io/microbit_traffic_lights/
Connect green, yellow and red LEDs, via 1 kOhm resistor each, to Micro:bit ground and pins 0, 1, 2 respectively.
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/texnic/microbit_traffic_lights 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/texnic/microbit_traffic_lights 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