Blink only one led in a led strip I wish to blink only one led (number two in the strip) bit it does not do so, any idea why and how can I do it?
Code:
#include &quot;FastLED.h&quot;

//Number of LEDs
#define NUM_LEDS 9

//Define our clock and data lines
#define DATA_PIN 11
#define CLOCK_PIN 13

//Create the LED array
CRGB leds[NUM_LEDS];

void setup() { 
      FastLED.addLeds&lt;APA102, DATA_PIN, CLOCK_PIN, BGR&gt;(leds, NUM_LEDS);
      FastLED.setBrightness(5);
}

void loop() { 
  leds[0] = CRGB::Blue; 
  leds[1] = CRGB::Green;
  
  //Blink this one only
  leds[2] = CRGB::Red;
  leds[2] = CRGB::Black;
  delay(500);
  leds[2] = CRGB::Red;
  
  leds[3] = CRGB::White;
  leds[4] = CRGB::Purple;
  leds[5] = CRGB::Green;
  leds[6] = CRGB::Blue;
  leds[7] = CRGB::Yellow;
  leds[8] = CRGB::Red;
  FastLED.show();
}
Everytime, that you want the LEDs to change, you need to call the FastLED.show() function. You are doing that only once after you set the values multiple times. Also you need 2 delays in total (1 for the LED being on, 1 for it being off).
The workflow for blinking an LED would be:
Set LED to on
Call show function
Delay
Set LED to off
Call show function
Delay

You need to translate that to code.