Use STARTLED default of 1

This commit is contained in:
Paul Dino Jones 2025-01-02 16:21:15 -05:00
parent 0f29394aa7
commit 79b3aba157
1 changed files with 4 additions and 4 deletions

View File

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