From cbdb68d85f9796fbad4fb6a403a0756da5d7fbd6 Mon Sep 17 00:00:00 2001 From: Groner1661 Date: Sat, 23 Apr 2022 18:52:00 -0400 Subject: [PATCH] Update FrontAndRearLights.ino I was having an issue with the included Arduino sketch for the Front and Rear LED Strip lights. The lights were showing GREEN, RED, BLUE, and OFF in that order and it would repeat across the strip. I discovered that the strip in the build of materials does not contain a white LED and the sketch was calling for a strip that contained GRBW. I changed it to GRB only and adjusted the front LED Color to (255,255,255) to achieve the white color. The new sketch I used is forked here. --- Software Design/FrontAndRearLights/FrontAndRearLights.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Software Design/FrontAndRearLights/FrontAndRearLights.ino b/Software Design/FrontAndRearLights/FrontAndRearLights.ino index d4b3166..f705281 100644 --- a/Software Design/FrontAndRearLights/FrontAndRearLights.ino +++ b/Software Design/FrontAndRearLights/FrontAndRearLights.ino @@ -6,8 +6,8 @@ #define BRIGHTNESS 127 // min = 0; max = 255 -Adafruit_NeoPixel front_leds(NUM_LEDS, FRONT_DATA_PIN, NEO_GRBW + NEO_KHZ800); -Adafruit_NeoPixel rear_leds(NUM_LEDS, REAR_DATA_PIN, NEO_GRBW + NEO_KHZ800); +Adafruit_NeoPixel front_leds(NUM_LEDS, FRONT_DATA_PIN, NEO_GRB + NEO_KHZ800); +Adafruit_NeoPixel rear_leds(NUM_LEDS, REAR_DATA_PIN, NEO_GRB + NEO_KHZ800); void setup() { Serial.begin(9600); @@ -20,8 +20,8 @@ void setup() { void loop() { for (int i=0; i