From 19b1a7c6e5be7f6e78ad51718e44e793ff7d7ddc Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Wed, 15 Apr 2026 21:19:23 +0200 Subject: [PATCH] Main routine added --- Gaugecontroller/Gaugecontroller.ino | 6 +++--- main.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 main.py diff --git a/Gaugecontroller/Gaugecontroller.ino b/Gaugecontroller/Gaugecontroller.ino index 4a24497..bc21c94 100644 --- a/Gaugecontroller/Gaugecontroller.ino +++ b/Gaugecontroller/Gaugecontroller.ino @@ -11,7 +11,7 @@ static const uint8_t LED_DATA_PIN = 22; // For now: commands come over USB serial #define CMD_PORT Serial1 -#define DEBUG_PORT Serial +#define DEBUG_PORT Serial1 struct GaugePins { uint8_t dirPin; @@ -25,8 +25,8 @@ struct GaugePins { constexpr GaugePins gaugePins[GAUGE_COUNT] = { // dir, step, en, dirInv, stepHigh, enActiveLow, leds - {50, 51, -1, false, true, true, 6}, // Gauge 0 - {8, 9, -1, true, true, true, 6}, // Gauge 1 + {50, 51, -1, false, true, true, 7}, // Gauge 0 + {8, 9, -1, true, true, true, 7}, // Gauge 1 }; constexpr uint8_t sumLedCounts(uint8_t i = 0) { diff --git a/main.py b/main.py new file mode 100644 index 0000000..bcd3278 --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +import gauge