5th gauge added
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <FastLED.h>
|
#include <FastLED.h>
|
||||||
|
|
||||||
static const uint8_t GAUGE_COUNT = 4;
|
static const uint8_t GAUGE_COUNT = 5;
|
||||||
|
|
||||||
// Backlight/status LEDs use an addressable strip. Indicator LEDs are
|
// Backlight/status LEDs use an addressable strip. Indicator LEDs are
|
||||||
// single-colour active-high outputs on per-gauge pins. The command protocol
|
// single-colour active-high outputs on per-gauge pins. The command protocol
|
||||||
@@ -39,10 +39,11 @@ struct GaugePins {
|
|||||||
|
|
||||||
constexpr GaugePins gaugePins[GAUGE_COUNT] = {
|
constexpr GaugePins gaugePins[GAUGE_COUNT] = {
|
||||||
// dir, step, en, dirInv, stepHigh, enActiveLow, ledOrder, indRed, indGreen
|
// dir, step, en, dirInv, stepHigh, enActiveLow, ledOrder, indRed, indGreen
|
||||||
{48, 49, -1, false, true, true, "RRRGGRR", 2, 3}, // Gauge 0
|
{44, 45, -1, false, true, true, "RRRGGRR", 2, 3}, // Gauge 0
|
||||||
{8, 9, -1, true, true, true, "GGGRRRR", 35, 36}, // Gauge 1
|
{46, 47, -1, false, true, true, "RRRGGRR", 4, 5}, // Gauge 1
|
||||||
{52, 53, -1, false, true, true, "GGGRRRR", 37, 38}, // Gauge 2
|
{48, 49, -1, true, true, true, "GGGRRRR", 6, 7}, // Gauge 2
|
||||||
{50, 51, -1, false, true, true, "GGGRRRR", 39, 40}, // Gauge 3
|
{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) {
|
constexpr uint8_t cstrLen(const char* s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user