Main routine added

This commit is contained in:
2026-04-15 21:19:23 +02:00
parent 036fa045f8
commit 19b1a7c6e5
2 changed files with 4 additions and 3 deletions

View File

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