Add functionality to disable all LEDs

This commit is contained in:
Djuri 2024-03-11 21:21:15 +01:00
parent 969d2137c3
commit 3e00f1b4a6
6 changed files with 15 additions and 7 deletions

View file

@ -10,6 +10,11 @@ void ledTask(void *parameter) {
if (ledTaskQueue != NULL) {
if (xQueueReceive(ledTaskQueue, &ledTaskParams, portMAX_DELAY) ==
pdPASS) {
if (preferences.getBool("disableLeds", false)) {
continue;
}
uint32_t oldLights[NEOPIXEL_COUNT];
// get current state