digitalelektronik:moving-light
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
digitalelektronik:moving-light [2015/03/05 09:07] – ros | digitalelektronik:moving-light [2020/10/13 14:25] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 10: | Zeile 10: | ||
const int DELAY_MS = 500; | const int DELAY_MS = 500; | ||
+ | const int PIN[] = { 2, 3, 4, 5 }; | ||
const int PIN_COUNT = 4; | const int PIN_COUNT = 4; | ||
- | const int PIN[PIN_COUNT] = { 2, 3, 4, 5 }; | ||
int currentLed; | int currentLed; | ||
Zeile 45: | Zeile 45: | ||
const int DELAY_MS = 100; | const int DELAY_MS = 100; | ||
const int PIN[] = { 2, 3, 4, 5, 6, 7, 8, 9 }; | const int PIN[] = { 2, 3, 4, 5, 6, 7, 8, 9 }; | ||
- | const int PIN_COUNT = sizeof(PIN) / sizeof(int); | + | const int PIN_COUNT = 8; |
int currentLed; | int currentLed; | ||
int dir; | int dir; | ||
Zeile 81: | Zeile 82: | ||
const int DELAY_MS = 100; | const int DELAY_MS = 100; | ||
const int PIN[] = { 2, 3, 4, 5, 6, 7, 8, 9 }; | const int PIN[] = { 2, 3, 4, 5, 6, 7, 8, 9 }; | ||
- | const int PIN_COUNT = sizeof(PIN) / sizeof(int); | + | const int PIN_COUNT = 8; |
int currentLed; | int currentLed; | ||
int dir; | int dir; |
digitalelektronik/moving-light.txt · Zuletzt geändert: 2020/10/13 14:25 von 127.0.0.1