From a800f2383e11aa45b3d7774b93c717ce6a5fb247 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 21:16:12 +0100 Subject: [PATCH 01/31] LED test first version --- src/main.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index deeb155..e8b4fa7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2114,8 +2114,15 @@ void setup() { DisplayRGB(255, 191, 0); break; } + case 8: { // RGB Test + RefreshSetupScreen(); + display->DisplayText("RGB Test", + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, + (TOTAL_HEIGHT / 2) - 4, 255, 191, 0); + break; + } #ifdef ZEDMD_HD_HALF - case 8: { // Y Offset + case 9: { // Y Offset RefreshSetupScreen(); display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, @@ -2244,8 +2251,12 @@ void setup() { SaveRgbOrder(); break; } + case 8: { // RGB Test + LedTester(); + break; + } #ifdef ZEDMD_HD_HALF - case 8: { // Y-Offset + case 9: { // Y-Offset if (up && ++yOffset > 32) yOffset = 0; else if (down && --yOffset < 0) From 0957bd5cef5a7dcfb61d7c12d0f75a4159b97ba6 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 22:21:18 +0100 Subject: [PATCH 02/31] rgb test --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index e8b4fa7..4fd8b3d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1100,6 +1100,8 @@ void RefreshSetupScreen() { display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif + display->DisplayText("RGB Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, + (TOTAL_HEIGHT / 2) - 4, 128, 128, 128); display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); } From f60e7db3635c297b68b97eb1a6d41c953bbe8c9b Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 22:29:03 +0100 Subject: [PATCH 03/31] adjust position --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4fd8b3d..d029d5f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1100,8 +1100,8 @@ void RefreshSetupScreen() { display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif - display->DisplayText("RGB Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, - (TOTAL_HEIGHT / 2) - 4, 128, 128, 128); + display->DisplayText("RGB Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 12, + (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); } From 7b938e3c02fb27d3ff9e331f721ba6db8c07b47f Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 22:43:32 +0100 Subject: [PATCH 04/31] adjust position #2 --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d029d5f..d61cd39 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1100,8 +1100,8 @@ void RefreshSetupScreen() { display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif - display->DisplayText("RGB Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 12, - (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); + display->DisplayText("RGB Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + (TOTAL_HEIGHT / 2) - 2, 128, 128, 128); display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); } From 0aa8aa295c26b3c66cc84dd5b084ec678ba8250b Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 22:58:50 +0100 Subject: [PATCH 05/31] update menu items and position correctly. --- src/main.cpp | 14 +++++++------- src/main.h | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d61cd39..f2e3d4a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1100,8 +1100,8 @@ void RefreshSetupScreen() { display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif - display->DisplayText("RGB Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, - (TOTAL_HEIGHT / 2) - 2, 128, 128, 128); + display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + (TOTAL_HEIGHT / 2) - 3, 128, 128, 128); display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); } @@ -2116,11 +2116,11 @@ void setup() { DisplayRGB(255, 191, 0); break; } - case 8: { // RGB Test + case 8: { // LED Test RefreshSetupScreen(); - display->DisplayText("RGB Test", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, - (TOTAL_HEIGHT / 2) - 4, 255, 191, 0); + display->DisplayText("LED Test", + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + (TOTAL_HEIGHT / 2) - 3, 128, 128, 128); break; } #ifdef ZEDMD_HD_HALF @@ -2253,7 +2253,7 @@ void setup() { SaveRgbOrder(); break; } - case 8: { // RGB Test + case 8: { // LED Test LedTester(); break; } diff --git a/src/main.h b/src/main.h index b64460f..0b84fa7 100644 --- a/src/main.h +++ b/src/main.h @@ -79,9 +79,9 @@ #define LED_CHECK_DELAY 1000 // ms per color #ifdef ZEDMD_HD_HALF -#define MENU_ITEMS_COUNT 8 +#define MENU_ITEMS_COUNT 9 #else -#define MENU_ITEMS_COUNT 7 +#define MENU_ITEMS_COUNT 8 #endif #define RC 0 From 801b53817c4c83731e55c2d3ff39ba6da2c4a8bc Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:06:30 +0100 Subject: [PATCH 06/31] adjust color when hovering and refresh screen --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f2e3d4a..baa0858 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2120,7 +2120,7 @@ void setup() { RefreshSetupScreen(); display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, - (TOTAL_HEIGHT / 2) - 3, 128, 128, 128); + (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; } #ifdef ZEDMD_HD_HALF @@ -2255,6 +2255,7 @@ void setup() { } case 8: { // LED Test LedTester(); + RefreshSetupScreen(); break; } #ifdef ZEDMD_HD_HALF From 47deac60ff51ae01c2c516dccdf53908ad03682c Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:12:19 +0100 Subject: [PATCH 07/31] LED Test should still have a glow after returning --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index baa0858..6cb1b46 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2256,6 +2256,9 @@ void setup() { case 8: { // LED Test LedTester(); RefreshSetupScreen(); + display->DisplayText("LED Test", + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; } #ifdef ZEDMD_HD_HALF From 56cfe402062a9b4195748a0132b189bf1c997c85 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:17:32 +0100 Subject: [PATCH 08/31] increase delay a bit --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index 0b84fa7..1097927 100644 --- a/src/main.h +++ b/src/main.h @@ -76,7 +76,7 @@ #define FORWARD_BUTTON_PIN 33 #endif -#define LED_CHECK_DELAY 1000 // ms per color +#define LED_CHECK_DELAY 2000 // ms per color #ifdef ZEDMD_HD_HALF #define MENU_ITEMS_COUNT 9 From b3c8ec7bc55bc9d575fce5d2400f51c3cad96e86 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:21:43 +0100 Subject: [PATCH 09/31] adjust positions for cleaner alignment --- src/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6cb1b46..963ade0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1097,12 +1097,12 @@ void RefreshSetupScreen() { } #endif #ifdef ZEDMD_HD_HALF - display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif - display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 3, 128, 128, 128); - display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, + display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 15, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); } @@ -2011,7 +2011,7 @@ void setup() { SaveSettingsMenu(); RefreshSetupScreen(); - display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, + display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 15, (TOTAL_HEIGHT / 2) + 4, 255, 191, 0); const auto forwardButton = new Bounce2::Button(); @@ -2068,7 +2068,7 @@ void setup() { case 1: { // Exit RefreshSetupScreen(); display->DisplayText("Exit", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 16, + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 15, (TOTAL_HEIGHT / 2) + 4, 255, 191, 0); break; } @@ -2119,7 +2119,7 @@ void setup() { case 8: { // LED Test RefreshSetupScreen(); display->DisplayText("LED Test", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; } @@ -2127,7 +2127,7 @@ void setup() { case 9: { // Y Offset RefreshSetupScreen(); display->DisplayText("Y-Offset", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 10, 255, 191, 0); break; } @@ -2257,7 +2257,7 @@ void setup() { LedTester(); RefreshSetupScreen(); display->DisplayText("LED Test", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; } @@ -2270,7 +2270,7 @@ void setup() { ClearScreen(); RefreshSetupScreen(); display->DisplayText("Y-Offset", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 32, + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 10, 255, 191, 0); SaveYOffset(); break; From b23d1f955e90442063dd5c96da09e50c9ea50b3a Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:28:33 +0100 Subject: [PATCH 10/31] postion? --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 963ade0..6fa760a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1100,7 +1100,7 @@ void RefreshSetupScreen() { display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif - display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, + display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 30, (TOTAL_HEIGHT / 2) - 3, 128, 128, 128); display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 15, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); From 083c0401add01ef81a10456f84f97f48242c4584 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:37:31 +0100 Subject: [PATCH 11/31] revert position. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6fa760a..963ade0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1100,7 +1100,7 @@ void RefreshSetupScreen() { display->DisplayText("Y-Offset", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 10, 128, 128, 128); #endif - display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 30, + display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, (TOTAL_HEIGHT / 2) - 3, 128, 128, 128); display->DisplayText("Exit", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 15, (TOTAL_HEIGHT / 2) + 4, 128, 128, 128); From e6540a2ce01e1035aa7400cb1b4787b25138d8e6 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:41:09 +0100 Subject: [PATCH 12/31] increase delay a bit more --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index 1097927..985b5d2 100644 --- a/src/main.h +++ b/src/main.h @@ -76,7 +76,7 @@ #define FORWARD_BUTTON_PIN 33 #endif -#define LED_CHECK_DELAY 2000 // ms per color +#define LED_CHECK_DELAY 3000 // ms per color #ifdef ZEDMD_HD_HALF #define MENU_ITEMS_COUNT 9 From 7767f1ee54f337dfebc42022a282c0fee7d96e0f Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:54:55 +0100 Subject: [PATCH 13/31] test panel glitch --- src/main.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 963ade0..e457b0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1060,13 +1060,14 @@ void ScreenSaver() { void RefreshSetupScreen() { DisplayLogo(); - for (uint16_t y = (TOTAL_HEIGHT / 32 * 5); - y < TOTAL_HEIGHT - (TOTAL_HEIGHT / 32 * 5); y++) { - for (uint16_t x = (TOTAL_WIDTH / 128 * 5); - x < TOTAL_WIDTH - (TOTAL_WIDTH / 128 * 5); x++) { - display->DrawPixel(x, y, 0, 0, 0); - } - } + ClearScreen(); + // for (uint16_t y = (TOTAL_HEIGHT / 32 * 5); + // y < TOTAL_HEIGHT - (TOTAL_HEIGHT / 32 * 5); y++) { + // for (uint16_t x = (TOTAL_WIDTH / 128 * 5); + // x < TOTAL_WIDTH - (TOTAL_WIDTH / 128 * 5); x++) { + // display->DrawPixel(x, y, 0, 0, 0); + // } + //} DisplayRGB(); DisplayLum(); display->DisplayText(transport->getTypeString(), 7 * (TOTAL_WIDTH / 128), From 2e32fbe930e3d430b1d63783e80a566450403dee Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Wed, 11 Mar 2026 23:58:36 +0100 Subject: [PATCH 14/31] revert --- src/main.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e457b0e..cacb695 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1060,14 +1060,13 @@ void ScreenSaver() { void RefreshSetupScreen() { DisplayLogo(); - ClearScreen(); - // for (uint16_t y = (TOTAL_HEIGHT / 32 * 5); - // y < TOTAL_HEIGHT - (TOTAL_HEIGHT / 32 * 5); y++) { - // for (uint16_t x = (TOTAL_WIDTH / 128 * 5); - // x < TOTAL_WIDTH - (TOTAL_WIDTH / 128 * 5); x++) { - // display->DrawPixel(x, y, 0, 0, 0); - // } - //} + for (uint16_t y = (TOTAL_HEIGHT / 32 * 5); + y < TOTAL_HEIGHT - (TOTAL_HEIGHT / 32 * 5); y++) { + for (uint16_t x = (TOTAL_WIDTH / 128 * 5); + x < TOTAL_WIDTH - (TOTAL_WIDTH / 128 * 5); x++) { + display->DrawPixel(x, y, 0, 0, 0); + } + } DisplayRGB(); DisplayLum(); display->DisplayText(transport->getTypeString(), 7 * (TOTAL_WIDTH / 128), From 45acf35934edb838fba45fee41b71a546bcb4a6a Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 01:00:21 +0100 Subject: [PATCH 15/31] manual led test --- src/main.cpp | 45 +++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cacb695..618699e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -738,18 +738,39 @@ void LoadSpeakerLightsSettings() { #endif void LedTester(void) { - display->FillScreen(255, 0, 0); - display->Render(); - delay(LED_CHECK_DELAY); - - display->FillScreen(0, 255, 0); - display->Render(); - delay(LED_CHECK_DELAY); - - display->FillScreen(0, 0, 255); - display->Render(); - delay(LED_CHECK_DELAY); - + uint16_t ledStartMs = 0; + uint8_t ledSwitch = 0; + bool pressed = false; + + ledStartMs = millis(); + + while (ledSwitch != 4) { + if (!digitalRead(FORWARD_BUTTON_PIN)) { + ledSwitch = 4; + } else if (!digitalRead(UP_BUTTON_PIN || DOWN_BUTTON_PIN)) { + pressed = true; + ledSwitch++; + } else if (((millis() - ledStartMs) % 2000) && !pressed) { + ledSwitch++; + } + switch (ledSwitch) { + case 1: + display->FillScreen(255, 0, 0); + display->Render(); + break; + case 2: + display->FillScreen(0, 255, 0); + display->Render(); + break; + case 3: + display->FillScreen(0, 0, 255); + display->Render(); + if (pressed) { + ledSwitch = 0; + } + break; + } + } display->ClearScreen(); display->Render(); } From 3484064361cc72213e650d210355f88e4318bba9 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 01:02:29 +0100 Subject: [PATCH 16/31] fix digital read --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 618699e..f2c0a4c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -747,7 +747,7 @@ void LedTester(void) { while (ledSwitch != 4) { if (!digitalRead(FORWARD_BUTTON_PIN)) { ledSwitch = 4; - } else if (!digitalRead(UP_BUTTON_PIN || DOWN_BUTTON_PIN)) { + } else if (!digitalRead(UP_BUTTON_PIN) || !digitalRead(UP_BUTTON_PIN)) { pressed = true; ledSwitch++; } else if (((millis() - ledStartMs) % 2000) && !pressed) { From 0436c503e6cadaebb1cac2f0d56fd3acc1cdb343 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 01:06:26 +0100 Subject: [PATCH 17/31] led check delay --- src/main.cpp | 4 ++-- src/main.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f2c0a4c..ca6c8c5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,7 @@ #include "displays/Esp32LedMatrix.h" #endif -#define LED_CHECK_DELAY 1000 // ms per color +#define LED_CHECK_DELAY 2500 // ms per color #define RC 0 #define GC 1 @@ -750,7 +750,7 @@ void LedTester(void) { } else if (!digitalRead(UP_BUTTON_PIN) || !digitalRead(UP_BUTTON_PIN)) { pressed = true; ledSwitch++; - } else if (((millis() - ledStartMs) % 2000) && !pressed) { + } else if (((millis() - ledStartMs) % LED_CHECK_DELAY) && !pressed) { ledSwitch++; } switch (ledSwitch) { diff --git a/src/main.h b/src/main.h index 985b5d2..7b17ca3 100644 --- a/src/main.h +++ b/src/main.h @@ -76,7 +76,7 @@ #define FORWARD_BUTTON_PIN 33 #endif -#define LED_CHECK_DELAY 3000 // ms per color +#define LED_CHECK_DELAY 2500 // ms per color #ifdef ZEDMD_HD_HALF #define MENU_ITEMS_COUNT 9 From 3bad09acddc944790fe4a5503ab073a8fc268287 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 01:12:00 +0100 Subject: [PATCH 18/31] led check delay --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ca6c8c5..b907062 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -750,7 +750,8 @@ void LedTester(void) { } else if (!digitalRead(UP_BUTTON_PIN) || !digitalRead(UP_BUTTON_PIN)) { pressed = true; ledSwitch++; - } else if (((millis() - ledStartMs) % LED_CHECK_DELAY) && !pressed) { + } else if ((((millis() - ledStartMs) % LED_CHECK_DELAY) == LED_CHECK_DELAY) + && !pressed) { ledSwitch++; } switch (ledSwitch) { From de5f35647671fecad35bf66f8062e74025a747b8 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 01:29:37 +0100 Subject: [PATCH 19/31] LED tester --- src/main.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b907062..70bfb0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -742,12 +742,26 @@ void LedTester(void) { uint8_t ledSwitch = 0; bool pressed = false; + const auto forwardButton = new Bounce2::Button(); + forwardButton->attach(FORWARD_BUTTON_PIN, INPUT_PULLUP); + forwardButton->interval(100); + forwardButton->setPressedState(LOW); + + const auto upButton = new Bounce2::Button(); + upButton->attach(UP_BUTTON_PIN, INPUT_PULLUP); + upButton->interval(100); + upButton->setPressedState(LOW); + ledStartMs = millis(); while (ledSwitch != 4) { - if (!digitalRead(FORWARD_BUTTON_PIN)) { + forwardButton->update(); + const bool forward = forwardButton->pressed(); + upButton->update(); + const bool up = upButton->pressed(); + if (forward) { ledSwitch = 4; - } else if (!digitalRead(UP_BUTTON_PIN) || !digitalRead(UP_BUTTON_PIN)) { + } else if (up) { pressed = true; ledSwitch++; } else if ((((millis() - ledStartMs) % LED_CHECK_DELAY) == LED_CHECK_DELAY) From a84947759560fec0fbfe472d00acf0ac02e8448c Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 11:36:35 +0100 Subject: [PATCH 20/31] fix auto walk through and add down button --- src/main.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 70bfb0e..eefcdfc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -739,7 +739,7 @@ void LoadSpeakerLightsSettings() { void LedTester(void) { uint16_t ledStartMs = 0; - uint8_t ledSwitch = 0; + uint8_t ledSwitch = 1; bool pressed = false; const auto forwardButton = new Bounce2::Button(); @@ -752,20 +752,30 @@ void LedTester(void) { upButton->interval(100); upButton->setPressedState(LOW); + const auto downButton = new Bounce2::Button(); + upButton->attach(DOWN_BUTTON_PIN, INPUT_PULLUP); + upButton->interval(100); + upButton->setPressedState(LOW); + ledStartMs = millis(); while (ledSwitch != 4) { forwardButton->update(); - const bool forward = forwardButton->pressed(); upButton->update(); + downButton->update(); + const bool forward = forwardButton->pressed(); const bool up = upButton->pressed(); + const bool down = downButton->pressed(); + if (forward) { ledSwitch = 4; - } else if (up) { + } + if (up || down) { pressed = true; ledSwitch++; - } else if ((((millis() - ledStartMs) % LED_CHECK_DELAY) == LED_CHECK_DELAY) - && !pressed) { + } + if ((((millis() - ledStartMs) % LED_CHECK_DELAY) == + LED_CHECK_DELAY - 1) && !pressed) { ledSwitch++; } switch (ledSwitch) { From 4cef5a8c4109d8b7876df87e7997fc577b16f214 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 16:05:49 +0100 Subject: [PATCH 21/31] refactor --- src/main.cpp | 97 ++++++++++++++++++++++++++-------------------------- 1 file changed, 48 insertions(+), 49 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index eefcdfc..ac8a81e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -229,6 +229,9 @@ static inline void InitRgbLuts() { uint8_t usbPackageSizeMultiplier = USB_PACKAGE_SIZE / 32; uint8_t settingsMenu = 0; uint8_t debug = 0; +uint8_t ledSwitch = 0; +uint32_t ledTestMs = 0; +bool pressed; Transport *transport = nullptr; @@ -737,67 +740,48 @@ void LoadSpeakerLightsSettings() { } #endif -void LedTester(void) { - uint16_t ledStartMs = 0; - uint8_t ledSwitch = 1; - bool pressed = false; - - const auto forwardButton = new Bounce2::Button(); - forwardButton->attach(FORWARD_BUTTON_PIN, INPUT_PULLUP); - forwardButton->interval(100); - forwardButton->setPressedState(LOW); - - const auto upButton = new Bounce2::Button(); - upButton->attach(UP_BUTTON_PIN, INPUT_PULLUP); - upButton->interval(100); - upButton->setPressedState(LOW); - - const auto downButton = new Bounce2::Button(); - upButton->attach(DOWN_BUTTON_PIN, INPUT_PULLUP); - upButton->interval(100); - upButton->setPressedState(LOW); - - ledStartMs = millis(); - - while (ledSwitch != 4) { - forwardButton->update(); - upButton->update(); - downButton->update(); - const bool forward = forwardButton->pressed(); - const bool up = upButton->pressed(); - const bool down = downButton->pressed(); - - if (forward) { - ledSwitch = 4; - } - if (up || down) { - pressed = true; - ledSwitch++; +void LedTester(bool isMenu) { + if (isMenu) { + if (ledTestMs == 0) { + ledTestMs = millis(); } - if ((((millis() - ledStartMs) % LED_CHECK_DELAY) == - LED_CHECK_DELAY - 1) && !pressed) { + if ((millis() - ledTestMs) >= LED_CHECK_DELAY && !pressed) { + ledTestMs += LED_CHECK_DELAY; ledSwitch++; } - switch (ledSwitch) { - case 1: + switch(ledSwitch) { + case 0: display->FillScreen(255, 0, 0); display->Render(); break; - case 2: + case 1: display->FillScreen(0, 255, 0); display->Render(); break; - case 3: + case 2: display->FillScreen(0, 0, 255); display->Render(); - if (pressed) { - ledSwitch = 0; - } + break; + case 3: + if (pressed) ledSwitch = 0; break; } + } else { + display->FillScreen(255, 0, 0); + display->Render(); + delay(LED_CHECK_DELAY); + + display->FillScreen(0, 255, 0); + display->Render(); + delay(LED_CHECK_DELAY); + + display->FillScreen(0, 0, 255); + display->Render(); + delay(LED_CHECK_DELAY); + + display->ClearScreen(); + display->Render(); } - display->ClearScreen(); - display->Render(); } void AcquireNextBuffer() { @@ -1766,7 +1750,7 @@ uint8_t HandleData(uint8_t *pData, size_t len) { Serial.flush(); } #endif - LedTester(); + LedTester(false); Restart(); } @@ -2300,7 +2284,22 @@ void setup() { break; } case 8: { // LED Test - LedTester(); + ledSwitch = 0; + ledTestMs = 0; + pressed = false; + while (ledSwitch != 3) { + LedTester(true); + if (forward) { + ledSwitch = 3; + } + if (up || down) { + pressed = true; + ledSwitch++; + if (ledSwitch > 2) { + ledSwitch = 0; + } + } + } RefreshSetupScreen(); display->DisplayText("LED Test", TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, From 4d81c2518ffbc4d45cc4501ce03f7e9af7e5fd63 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 16:46:17 +0100 Subject: [PATCH 22/31] different approach --- src/main.cpp | 90 ++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 56 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ac8a81e..b7a3bdf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -228,10 +228,6 @@ static inline void InitRgbLuts() { uint8_t usbPackageSizeMultiplier = USB_PACKAGE_SIZE / 32; uint8_t settingsMenu = 0; -uint8_t debug = 0; -uint8_t ledSwitch = 0; -uint32_t ledTestMs = 0; -bool pressed; Transport *transport = nullptr; @@ -740,48 +736,21 @@ void LoadSpeakerLightsSettings() { } #endif -void LedTester(bool isMenu) { - if (isMenu) { - if (ledTestMs == 0) { - ledTestMs = millis(); - } - if ((millis() - ledTestMs) >= LED_CHECK_DELAY && !pressed) { - ledTestMs += LED_CHECK_DELAY; - ledSwitch++; - } - switch(ledSwitch) { - case 0: - display->FillScreen(255, 0, 0); - display->Render(); - break; - case 1: - display->FillScreen(0, 255, 0); - display->Render(); - break; - case 2: - display->FillScreen(0, 0, 255); - display->Render(); - break; - case 3: - if (pressed) ledSwitch = 0; - break; - } - } else { - display->FillScreen(255, 0, 0); - display->Render(); - delay(LED_CHECK_DELAY); +void LedTester(void) { + display->FillScreen(255, 0, 0); + display->Render(); + delay(LED_CHECK_DELAY); - display->FillScreen(0, 255, 0); - display->Render(); - delay(LED_CHECK_DELAY); + display->FillScreen(0, 255, 0); + display->Render(); + delay(LED_CHECK_DELAY); - display->FillScreen(0, 0, 255); - display->Render(); - delay(LED_CHECK_DELAY); + display->FillScreen(0, 0, 255); + display->Render(); + delay(LED_CHECK_DELAY); - display->ClearScreen(); - display->Render(); - } + display->ClearScreen(); + display->Render(); } void AcquireNextBuffer() { @@ -1750,7 +1719,7 @@ uint8_t HandleData(uint8_t *pData, size_t len) { Serial.flush(); } #endif - LedTester(false); + LedTester(); Restart(); } @@ -2284,20 +2253,29 @@ void setup() { break; } case 8: { // LED Test - ledSwitch = 0; - ledTestMs = 0; - pressed = false; - while (ledSwitch != 3) { - LedTester(true); + uint8_t ledTest = 0; + while (1) { if (forward) { - ledSwitch = 3; + break; } - if (up || down) { - pressed = true; - ledSwitch++; - if (ledSwitch > 2) { - ledSwitch = 0; - } + if (up && ++ledTest > 2) { + ledTest = 0; + } else if (down && --ledTest > 2) { + ledTest = 2; + } + switch((ledTest) && up || down) { + case 0: + display->FillScreen(255, 0, 0); + display->Render(); + break; + case 1: + display->FillScreen(0, 255, 0); + display->Render(); + break; + case 2: + display->FillScreen(0, 0, 255); + display->Render(); + break; } } RefreshSetupScreen(); From 4c17c74b63a66f44bf82288ecb35a6e1185f2038 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Thu, 12 Mar 2026 16:11:05 +0100 Subject: [PATCH 23/31] don't remove debug.. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index b7a3bdf..fcfc4a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -228,6 +228,7 @@ static inline void InitRgbLuts() { uint8_t usbPackageSizeMultiplier = USB_PACKAGE_SIZE / 32; uint8_t settingsMenu = 0; +uint8_t debug = 0; Transport *transport = nullptr; From 729377abb82e16d66b3cf7f0638c97385f80d0f1 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 01:45:17 +0100 Subject: [PATCH 24/31] cleaner way of handling led test --- src/main.cpp | 53 +++++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fcfc4a1..6505d65 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -229,6 +229,7 @@ static inline void InitRgbLuts() { uint8_t usbPackageSizeMultiplier = USB_PACKAGE_SIZE / 32; uint8_t settingsMenu = 0; uint8_t debug = 0; +uint8_t ledTest = 0; Transport *transport = nullptr; @@ -737,7 +738,7 @@ void LoadSpeakerLightsSettings() { } #endif -void LedTester(void) { +void LedTester() { display->FillScreen(255, 0, 0); display->Render(); delay(LED_CHECK_DELAY); @@ -2254,35 +2255,31 @@ void setup() { break; } case 8: { // LED Test - uint8_t ledTest = 0; - while (1) { - if (forward) { + if (up && ++rgbMode > 3) + ledTest = 0; + else if (down && + --rgbMode > + 3) // underflow will result in 255, set it to 2 + ledTest = 3; + switch(ledTest) { + case 0: + display->FillScreen(255, 0, 0); + display->Render(); + break; + case 1: + display->FillScreen(0, 255, 0); + display->Render(); + break; + case 2: + display->FillScreen(0, 0, 255); + display->Render(); + case 3: + RefreshSetupScreen(); + display->DisplayText("LED Test", + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, + (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; - } - if (up && ++ledTest > 2) { - ledTest = 0; - } else if (down && --ledTest > 2) { - ledTest = 2; - } - switch((ledTest) && up || down) { - case 0: - display->FillScreen(255, 0, 0); - display->Render(); - break; - case 1: - display->FillScreen(0, 255, 0); - display->Render(); - break; - case 2: - display->FillScreen(0, 0, 255); - display->Render(); - break; - } } - RefreshSetupScreen(); - display->DisplayText("LED Test", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, - (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; } #ifdef ZEDMD_HD_HALF From a8b086390dab08fe8192109413a342cf2fb35ce4 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 01:51:30 +0100 Subject: [PATCH 25/31] should be ledTest --- src/main.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6505d65..c2e9093 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2255,16 +2255,18 @@ void setup() { break; } case 8: { // LED Test - if (up && ++rgbMode > 3) + if (up && ++ledTest > 3) ledTest = 0; else if (down && - --rgbMode > + --ledTest > 3) // underflow will result in 255, set it to 2 ledTest = 3; switch(ledTest) { case 0: - display->FillScreen(255, 0, 0); - display->Render(); + RefreshSetupScreen(); + display->DisplayText("LED Test", + TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, + (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; case 1: display->FillScreen(0, 255, 0); @@ -2273,11 +2275,10 @@ void setup() { case 2: display->FillScreen(0, 0, 255); display->Render(); + break; case 3: - RefreshSetupScreen(); - display->DisplayText("LED Test", - TOTAL_WIDTH - (7 * (TOTAL_WIDTH / 128)) - 31, - (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); + display->FillScreen(255, 0, 0); + display->Render(); break; } break; From 1e71273f37ba889a1229138261329d2ed176a450 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 02:20:39 +0100 Subject: [PATCH 26/31] blue wasn't centered correctly --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c2e9093..29f3c90 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -335,7 +335,8 @@ void DisplayRGB(uint8_t r = 128, uint8_t g = 128, uint8_t b = 128) { display->DrawPixel(TOTAL_WIDTH - (4 * 4) - 1, i, 0, 0, 0); display->DrawPixel((TOTAL_WIDTH / 2) - (6 * 4) - 1, i, 0, 0, 0); } - display->DisplayText("blue", TOTAL_WIDTH - (4 * 4), 0, 0, 0, 0, true, true); + display->DisplayText("blue", TOTAL_WIDTH - ((4 * 4) - 1), 0, 0, 0, 0, true, + true); display->DisplayText("green", 0, TOTAL_HEIGHT - 6, 0, 0, 0, true, true); display->DisplayText("RGB Order:", (TOTAL_WIDTH / 2) - (6 * 4), 0, r, g, b); DisplayNumber(rgbMode, 2, (TOTAL_WIDTH / 2) + (4 * 4), 0, 255, 191, 0); From 27a3dcfbd541aebfbc0da3c6c67596fce2061fed Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 02:32:35 +0100 Subject: [PATCH 27/31] test not immediately writing to fs. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 29f3c90..eb4e32a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -335,7 +335,7 @@ void DisplayRGB(uint8_t r = 128, uint8_t g = 128, uint8_t b = 128) { display->DrawPixel(TOTAL_WIDTH - (4 * 4) - 1, i, 0, 0, 0); display->DrawPixel((TOTAL_WIDTH / 2) - (6 * 4) - 1, i, 0, 0, 0); } - display->DisplayText("blue", TOTAL_WIDTH - ((4 * 4) - 1), 0, 0, 0, 0, true, + display->DisplayText("blue", TOTAL_WIDTH - (4 * 4), 0, 0, 0, 0, true, true); display->DisplayText("green", 0, TOTAL_HEIGHT - 6, 0, 0, 0, true, true); display->DisplayText("RGB Order:", (TOTAL_WIDTH / 2) - (6 * 4), 0, r, g, b); @@ -2252,7 +2252,7 @@ void setup() { rgbMode = 5; RefreshSetupScreen(); DisplayRGB(255, 191, 0); - SaveRgbOrder(); + //SaveRgbOrder(); break; } case 8: { // LED Test From f139fb21ddc992793d18084bebf42ecd8ca9334b Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 02:51:22 +0100 Subject: [PATCH 28/31] revert savergborder as test --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index eb4e32a..08bef26 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2252,7 +2252,7 @@ void setup() { rgbMode = 5; RefreshSetupScreen(); DisplayRGB(255, 191, 0); - //SaveRgbOrder(); + SaveRgbOrder(); break; } case 8: { // LED Test From 64771b9e2c86b3ffe77aa67841ee661f6cad8cf0 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 13:14:05 +0100 Subject: [PATCH 29/31] revert some stuff --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 08bef26..0b55d71 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -335,8 +335,7 @@ void DisplayRGB(uint8_t r = 128, uint8_t g = 128, uint8_t b = 128) { display->DrawPixel(TOTAL_WIDTH - (4 * 4) - 1, i, 0, 0, 0); display->DrawPixel((TOTAL_WIDTH / 2) - (6 * 4) - 1, i, 0, 0, 0); } - display->DisplayText("blue", TOTAL_WIDTH - (4 * 4), 0, 0, 0, 0, true, - true); + display->DisplayText("blue", TOTAL_WIDTH - (4 * 4), 0, 0, 0, 0, true, true); display->DisplayText("green", 0, TOTAL_HEIGHT - 6, 0, 0, 0, true, true); display->DisplayText("RGB Order:", (TOTAL_WIDTH / 2) - (6 * 4), 0, r, g, b); DisplayNumber(rgbMode, 2, (TOTAL_WIDTH / 2) + (4 * 4), 0, 255, 191, 0); @@ -739,7 +738,7 @@ void LoadSpeakerLightsSettings() { } #endif -void LedTester() { +void LedTester(void) { display->FillScreen(255, 0, 0); display->Render(); delay(LED_CHECK_DELAY); @@ -1062,7 +1061,7 @@ void ScreenSaver() { void RefreshSetupScreen() { DisplayLogo(); - for (uint16_t y = (TOTAL_HEIGHT / 32 * 5); + for (uint16_t y = (TOTAL_HEIGHT / 32 * 5); y < TOTAL_HEIGHT - (TOTAL_HEIGHT / 32 * 5); y++) { for (uint16_t x = (TOTAL_WIDTH / 128 * 5); x < TOTAL_WIDTH - (TOTAL_WIDTH / 128 * 5); x++) { From 4bfdfe2c90bee51b6f1079c8214320342647cfc5 Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 13:15:31 +0100 Subject: [PATCH 30/31] revert led check delay --- src/main.cpp | 2 +- src/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0b55d71..6354011 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,7 +62,7 @@ #include "displays/Esp32LedMatrix.h" #endif -#define LED_CHECK_DELAY 2500 // ms per color +#define LED_CHECK_DELAY 1000 // ms per color #define RC 0 #define GC 1 diff --git a/src/main.h b/src/main.h index 7b17ca3..0b84fa7 100644 --- a/src/main.h +++ b/src/main.h @@ -76,7 +76,7 @@ #define FORWARD_BUTTON_PIN 33 #endif -#define LED_CHECK_DELAY 2500 // ms per color +#define LED_CHECK_DELAY 1000 // ms per color #ifdef ZEDMD_HD_HALF #define MENU_ITEMS_COUNT 9 From 677a64a5f8b6f4a6e5dd70a45c2324b55128146a Mon Sep 17 00:00:00 2001 From: Jan Vos Date: Fri, 13 Mar 2026 13:28:17 +0100 Subject: [PATCH 31/31] correct rgb order --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6354011..faf44c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2269,15 +2269,15 @@ void setup() { (TOTAL_HEIGHT / 2) - 3, 255, 191, 0); break; case 1: - display->FillScreen(0, 255, 0); + display->FillScreen(255, 0, 0); display->Render(); break; case 2: - display->FillScreen(0, 0, 255); + display->FillScreen(0, 255, 0); display->Render(); break; case 3: - display->FillScreen(255, 0, 0); + display->FillScreen(0, 0, 255); display->Render(); break; }