Neopixel – wie LED´s einzeln ansprechbar werden

Hier mal zu sehen wie ich einen WS2812b oder auch Neopixel LED Streifen mit einen Arduino einzeln anspreche

Verkabelung:
Arduino Uno:
Kabel DataPin Grün an GPIO 3
und weiß an GND

Breadboard-Netzteilmodul:
Rot 5V und weiß an GND (Minus)


Library: FastLed von Daniel Garcia

Code:

#include <FastLED.h>

#define DATA_PIN 3

CRGB leds[9];

void setup() {

    FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, 9);  

}

void loop() {
  // Turn the LED on, then pause
  leds[4] = CRGB::Red;
  leds[2] = CRGB::Green;
  FastLED.show();
  delay(1000);
    // Now turn the LED off, then pause
  leds[4] = CRGB::Blue;
  leds[2] = CRGB::Yellow;
  FastLED.show();
  delay(500);
}

Youtube Video:

Update:

WS2812b Neopixel für Lichteffekte