From db05bc0864bd8e3a93b899c903155b711574531d Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Sun, 3 May 2026 17:34:09 +0200 Subject: [PATCH] 5th gauge added --- Gaugecontroller_no_VFD/Gaugecontroller_no_VFD.ino | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Gaugecontroller_no_VFD/Gaugecontroller_no_VFD.ino b/Gaugecontroller_no_VFD/Gaugecontroller_no_VFD.ino index 6b3c895..1196bcf 100644 --- a/Gaugecontroller_no_VFD/Gaugecontroller_no_VFD.ino +++ b/Gaugecontroller_no_VFD/Gaugecontroller_no_VFD.ino @@ -4,7 +4,7 @@ #include #include -static const uint8_t GAUGE_COUNT = 4; +static const uint8_t GAUGE_COUNT = 5; // Backlight/status LEDs use an addressable strip. Indicator LEDs are // single-colour active-high outputs on per-gauge pins. The command protocol @@ -39,10 +39,11 @@ struct GaugePins { constexpr GaugePins gaugePins[GAUGE_COUNT] = { // dir, step, en, dirInv, stepHigh, enActiveLow, ledOrder, indRed, indGreen - {48, 49, -1, false, true, true, "RRRGGRR", 2, 3}, // Gauge 0 - {8, 9, -1, true, true, true, "GGGRRRR", 35, 36}, // Gauge 1 - {52, 53, -1, false, true, true, "GGGRRRR", 37, 38}, // Gauge 2 - {50, 51, -1, false, true, true, "GGGRRRR", 39, 40}, // Gauge 3 + {44, 45, -1, false, true, true, "RRRGGRR", 2, 3}, // Gauge 0 + {46, 47, -1, false, true, true, "RRRGGRR", 4, 5}, // Gauge 1 + {48, 49, -1, true, true, true, "GGGRRRR", 6, 7}, // Gauge 2 + {50, 51, -1, false, true, true, "GGGRRRR", 8, 9}, // Gauge 3 + {52, 53, -1, false, true, true, "GGGRRRR", 10,11 }, // Gauge 4 }; constexpr uint8_t cstrLen(const char* s) {