#158Premium
Raspberry Pi Pico-Ampel mit 4-Modus-Tastenwahlschalter (Zustandsmaschine, GP11-13 + GP4)
4 verschiedene Modi für die Ampel mit nur einer Taste! 🚦 Mit jedem Tastendruck wechselt der Modus: **Normaler Zyklus** (nacheinander rot → gelb → grün), **Nur Rot** (Haltebefehl), **Gelb blinkend** (Achtung/Nachtmodus), **Aus** (Wartung). Lerninhalte: **Zustandsmaschine** (die Variable `mode` bestimmt, welches Verhalten ausgeführt wird), **Modulo-Modus-Zyklus** (`(mode + 1) % 4` → 0→1→2→3→0 – endloser Zyklus), **non-blocking timing** (anstelle von `time.sleep()` wird `time.ticks_ms()` + `ticks_d
0.0(0)

