detach LEDs from DIP switches

This commit is contained in:
2026-11-19 12:23:54 +02:00
parent 710c022db5
commit 93ac20ee1a
+7 -3
View File
@@ -8,12 +8,16 @@ static void ulLEDMode_Task(void *arg)
{ {
(void) arg; (void) arg;
register int current_light = 0;
for ( ; ; ) for ( ; ; )
{ {
GPIOB->ODR |= 0xF000; current_light++;
GPIOB->ODR &= ~(~GPIOE->IDR & 0xF000); current_light &= 0x3;
osDelay(10); GPIOB->ODR = 0xF000 & ~(0x1000 << current_light);
osDelay(200);
} }
} }