Red LED slowdown
This commit is contained in:
@@ -1631,9 +1631,9 @@ void APP_TimeSlice500ms(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gWakeUp) {
|
if (gWakeUp) {
|
||||||
static bool swap = true;
|
static uint8_t counter = 0;
|
||||||
swap = !swap; // Alterne l'état à chaque exécution
|
counter = (counter + 1) % 4;
|
||||||
BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, swap);
|
BK4819_ToggleGpioOut(BK4819_GPIO5_PIN1_RED, (counter == 0));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user