Forum
Einfache MicroPython Syntax Frage (Elektronik)
Hallo,
ich habe folgendes kleines Programm aus einem Tutorial:
Das "sleep(3)" habe ich angehängt, aber es macht nicht, was ich wollte.
So, wie es jetzt ist, wird zuerst das sleep(3) ausgeführt und dann erst i=0.
Ich wollte es aber umgekehrt: erst i=0, dann sleep(3) - dass die LED eben 3 Sekunden aus ist.
Übrigens würde es mich auch sehr interessieren, wie man, anstatt auf 0 zurück zu springen, per i = i - 3000 zu 0 zurückkehrt.
Gruß, Georg
Gesamter Thread:
Einfache MicroPython Syntax Frage - GeorgZ, 21.10.2023, 19:59 (Elektronik)
Einfache MicroPython Syntax Frage - Gast, 21.10.2023, 20:52
Einfache MicroPython Syntax Frage - GeorgZ, 21.10.2023, 21:11
Einfache MicroPython Syntax Frage - bastelix, 22.10.2023, 02:19
Einfache MicroPython Syntax Frage - GeorgZ, 22.10.2023, 10:54
Einfache MicroPython Syntax Frage - bastelix, 22.10.2023, 22:27
Einfache MicroPython Syntax Frage - GeorgZ, 23.10.2023, 10:15