detach LEDs from DIP switches
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user