From 79b3aba15711f89ece9ed15219f8f5d0ef64829b Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Thu, 2 Jan 2025 16:21:15 -0500 Subject: [PATCH] Use STARTLED default of 1 --- src/arduino/shiftlights/shiftlights.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/arduino/shiftlights/shiftlights.ino b/src/arduino/shiftlights/shiftlights.ino index 20baf8e..e6df274 100644 --- a/src/arduino/shiftlights/shiftlights.ino +++ b/src/arduino/shiftlights/shiftlights.ino @@ -6,7 +6,7 @@ #define LED_PIN 7 #define NUM_LEDS 6 #define BRIGHTNESS 40 -#define STARTLED 0 +#define STARTLED 1 #define COLOR1R 0 #define COLOR1G 255 @@ -64,15 +64,15 @@ void loop() { if (l >= numlights / 2) { - leds[l+STARTLED] = CRGB ( COLOR2R, COLOR2G, COLOR2B); + leds[l+STARTLED-1] = CRGB ( COLOR2R, COLOR2G, COLOR2B); } if (l < numlights / 2) { - leds[l+STARTLED] = CRGB ( COLOR1R, COLOR1G, COLOR1B); + leds[l+STARTLED-1] = CRGB ( COLOR1R, COLOR1G, COLOR1B); } if (l == numlights - 1) { - leds[l+STARTLED] = CRGB ( COLOR3R, COLOR3G, COLOR3B); + leds[l+STARTLED-1] = CRGB ( COLOR3R, COLOR3G, COLOR3B); } //if (lights[l] <= 0) //{