Red LED slowdown

This commit is contained in:
Armel FAUVEAU
2024-10-01 01:09:07 +02:00
parent 89644cc0e4
commit 52025a2896

View File

@@ -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