I’m using fastLED with NeoPixel Jewel-7 RGBW 2860. The first issue is that I can not get the right color on the right pixel. There are 7 leds on the pad, and I started from the sample code of just turning on the RED, and what I get is Red for first center LED, then Green on adjacent LED, then blue, and so on. The second issue is that I have to define the LED number to 9 to get all the leds to light some random color. When I put 7, I dont get the last LED to lightup.
I am using Arduino UNO, here is the code
#include “FastLED.h”
#define DATA_PIN (6)
#define NUM_JEWELS (1)
#define JEWEL_LEDS (9)
#define NUM_LEDS (NUM_JEWELS * JEWEL_LEDS)
// Define the array of leds
CRGB leds[NUM_LEDS];
void setup()
{
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
FastLED.clear();
fill_solid(leds, JEWEL_LEDS, CRGB::Black);
FastLED.show();
}
void loop()
{
FastLED.setBrightness(15);
for(int i = 0; i < JEWEL_LEDS; i++)
{
leds[i] = CRGB::Red;
FastLED.show();
delay(1000);
// Now turn the LED off, then pause
leds[i] = CRGB::Black;
FastLED.show();
delay(500);
}
}
FYI: I have the same setup using fastLED with Neopixel RGB 144LED strip 1506. Everything works perfect till I remove the strip and put the Jewel and update values for LED array.
Any help is greatly appreciated…