Traffic light

Task

Simulate a traffic light with the microbit and the additional board. If you press button A, the traffic light starts to flash green four times every second and then changes from yellow to red. After a four-second break, the traffic light changes to yellow-red and finally back to green.

Aufgabenstellung

Simulate a traffic light with the microbit and the additional board. If you press button A, the traffic light starts to flash green four times every second and then changes from yellow to red. After a four-second break, the traffic light changes to yellow-red and finally back to green.

Blockcode