04-traffic-light
(C)stachan 08.02.2024
Task 4 :: Einfache Ampel / Simple Traffic Light

Betrachten Sie die Abbildung. Programmieren Sie eine Ampelschaltung, die in einer Endlosschleife läuft (1T = 50000):
Rot 5T
Rot und gelb 1T
Grün 4T
Alle aus 1T
Grün 1T
Alle aus 1T
Grün 1T
Gelb 1T
Falls Sie ein Command öfter als 1x benötigen, wiederholen Sie die Zeile. Im nächsten Task lernen Sie, wie man das effizienter löst.
Refer to the image. Program a traffic light circuit that runs in an endless loop (1T = 50000):
Red 5T
Red and yellow 1T
Green 4T
All off 1T
Green 1T
All off 1T
Green 1T
Yellow 1T
If you need a command more than once, repeat the line. In the next task, you will learn how to solve this more efficiently.