I am using the newest FastLED library with my Arduino Uno R3 and a WS2812B RGB LED strip of 30 LEDs.
When I set an LED to red, the color is green.
When I set an LED to green, the color is red.
Yet when I use Adafruit’s Neopixel library, there is no color reversal.
Below is the code. What am I doing wrong?
#include “FastLED.h”
// Number of RGB LEDs in the strand
#define NUM_LEDS 30
// Define the array of leds
CRGB leds[NUM_LEDS];
// Arduino pin used for Data
#define PIN 6
void setup()
{
FastLED.addLeds<NEOPIXEL, PIN, RGB>(leds, NUM_LEDS);
}
void loop() {
leds[10] = CRGB::Red; // Set LED 10 to red
FastLED.show(); // Show changes
}