so denke ich werden alle LEDs angesteuert

This commit is contained in:
2026-03-09 11:32:15 +01:00
parent e08544a94e
commit ed2f2736d0
17 changed files with 1609 additions and 1441 deletions
+6
View File
@@ -74,6 +74,9 @@ int main(void)
switch (state) {
case 0:
GPIOA->ODR &= ~(1 << 0); // LED0 on
GPIOA->ODR &= ~(1 << 1);
GPIOA->ODR &= ~(1 << 2);
GPIOA->ODR &= ~(1 << 3);
state++;
break;
@@ -83,6 +86,9 @@ int main(void)
break;
case 2:
GPIOA->ODR |= (1 << 0); // LED0 off
GPIOA->ODR |= (1 << 1);
GPIOA->ODR |= (1 << 2);
GPIOA->ODR |= (1 << 3);
delay(WAITTIME); // wait
state = 0;
break;