(C)stachan 08.02.2024
Task :: Add 10
- Das Programm zählt in einer Endlosschleife im Takt von 1T=50000 von 0 hoch.
- Beachten Sie, dass die größte Dezimalzahl 255 ist. Durch den Überlauf des Byte-Registers beginnt das Zählen dann wieder bei 0.
- Währenddessen leuchtet die grüne LED dauerhaft.
- Wird der rote Button gedrückt, erscheinen drei Zeilen aus je drei Punkten (siehe unten, benutzen Sie Text und programmieren Sie hier eine Schleife). Währenddessen leuchtet die rote LED dauerhaft.
- Dann erscheint der Text “Addiere 10:” und die Ausgabe wird um 10 erhöht.
- The programme counts up from 0 in an infinite loop at a rate of 1T=50000.
- Note that the largest decimal number is 255. Due to the byte register overflow, counting then starts again at 0.
- Meanwhile, the green LED lights up continuously.
- If the red button is pressed, three lines of three dots each appear (see below, use text and write a loop here). In the meantime, the red LED lights up continuously.
- Then the text ‘Add 10:’ appears and the output is increased by 10.
