Main routine added
This commit is contained in:
@@ -11,7 +11,7 @@ static const uint8_t LED_DATA_PIN = 22;
|
|||||||
|
|
||||||
// For now: commands come over USB serial
|
// For now: commands come over USB serial
|
||||||
#define CMD_PORT Serial1
|
#define CMD_PORT Serial1
|
||||||
#define DEBUG_PORT Serial
|
#define DEBUG_PORT Serial1
|
||||||
|
|
||||||
struct GaugePins {
|
struct GaugePins {
|
||||||
uint8_t dirPin;
|
uint8_t dirPin;
|
||||||
@@ -25,8 +25,8 @@ struct GaugePins {
|
|||||||
|
|
||||||
constexpr GaugePins gaugePins[GAUGE_COUNT] = {
|
constexpr GaugePins gaugePins[GAUGE_COUNT] = {
|
||||||
// dir, step, en, dirInv, stepHigh, enActiveLow, leds
|
// dir, step, en, dirInv, stepHigh, enActiveLow, leds
|
||||||
{50, 51, -1, false, true, true, 6}, // Gauge 0
|
{50, 51, -1, false, true, true, 7}, // Gauge 0
|
||||||
{8, 9, -1, true, true, true, 6}, // Gauge 1
|
{8, 9, -1, true, true, true, 7}, // Gauge 1
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr uint8_t sumLedCounts(uint8_t i = 0) {
|
constexpr uint8_t sumLedCounts(uint8_t i = 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user