FastLED: "Invalid pin specified" I have an Adafruit Trinket (5v, 16mhz, based off of the AtTiny85 chip), and am wishing to use it with a strip with 24 3 pin, individually addressable LEDs (WS2812B). When I try to compile my code, I get this error:  static_assert(validpin(), "Invalid pin specified"); I've tried using different pins, but of them are seeming to work. What can I do to fix this issue? Here's my current code:

#include &lt;FastLED.h&gt;
#define LEDCOUNT 24
#define DATAPIN 0

CRGB leds[LEDCOUNT];

void setup() {
  FastLED.addLeds&lt;WS2812B, LEDCOUNT&gt;(leds, LEDCOUNT);
}

void loop() {
  leds[0] = CRGB::Red;
  FastLED.show();
  delay(30);
}
I think what @IgnacioVazquez-Abrams is getting at is:

void setup() {
  FastLED.addLeds&lt;WS2812B, LEDCOUNT&gt;(leds, LEDCOUNT);
}


Has LEDCOUNT showing up for both the number of LEDs and the data pin identifier.

Try:

void setup() {
  FastLED.addLeds&lt;WS2812B, DATAPIN, GRB&gt;(leds, LEDCOUNT);
}


This puts DATAPIN in the right place, and also adds the color order typical for WS2812B, GRB