Hello
I know hardware and struggle with code.
Can someone PLEASE help !!!
Here's the changes I made. (top line is what I changed)
''' #define SETUP_LED_1(cgrb, 8) FastLED.addLeds<NEOPIXEL, STRING_PIN_1>(cgrb, 8);
#define SETUP_LED_2(leds, numLeds) FastLED.addLeds<NEOPIXEL, STRING_PIN_2>(leds, numLeds);
I swapped this "cgrb, 8", thinking it defined "LEDS" and "numLEDS". '''
Here are the instructions I'm working with.
''' // Comment in LED_TYPE_1 through LED_TYPE_4 and set them to the correct value. Then comment in
// these 4 macros, OR leave these 4 macros commented out and comment in the 4 NEOPIXEL macros
// which are basically WS2811 with the color format set to GRB.
//#define SETUP_LED_1(leds, numLeds) FastLED.addLeds<LED_TYPE_1, STRING_PIN_1, RGB>(leds, numLeds);
//#define SETUP_LED_2(leds, numLeds) FastLED.addLeds<LED_TYPE_2, STRING_PIN_2, RGB>(leds, numLeds);
//#define SETUP_LED_3(leds, numLeds) FastLED.addLeds<LED_TYPE_3, STRING_PIN_3, RGB>(leds, numLeds);
//#define SETUP_LED_4(leds, numLeds) FastLED.addLeds<LED_TYPE_4, STRING_PIN_4, RGB>(leds, numLeds);
#define SETUP_LED_1(cgrb, 8) FastLED.addLeds<NEOPIXEL, STRING_PIN_1>(cgrb, 8);
#define SETUP_LED_2(leds, numLeds) FastLED.addLeds<NEOPIXEL, STRING_PIN_2>(leds, numLeds);
#define SETUP_LED_3(leds, numLeds) FastLED.addLeds<NEOPIXEL, STRING_PIN_3>(leds, numLeds);
#define SETUP_LED_4(leds, numLeds) FastLED.addLeds<NEOPIXEL, STRING_PIN_4>(leds, numLeds); '''
The NEOPIXEL 8 Led bar works with "Example" sketches.
But the code changes are explained, so I made it through.
Been fighting various issues with the system I'm setting up.
this is the last major hurdle as far as testing configuration goes.
Once I get this I can start putting it together.