user39894: 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 <FastLED.h>
#define LEDCOUNT 24
#define DATAPIN 0

CRGB leds[LEDCOUNT];

void setup() {
  FastLED.addLeds<WS2812B, LEDCOUNT>(leds, LEDCOUNT);
}

void loop() {
  leds[0] = CRGB::Red;
  FastLED.show();
  delay(30);
}


user27653: I think what @IgnacioVazquez-Abrams is getting at is:
void setup() {
  FastLED.addLeds<WS2812B, LEDCOUNT>(leds, LEDCOUNT);
}

Has LEDCOUNT showing up for both the number of LEDs and the data pin identifier.
Try:
void setup() {
  FastLED.addLeds<WS2812B, DATAPIN, GRB>(leds, LEDCOUNT);
}

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

39894: <p>I have an <strong>Adafruit Trinket (5v, 16mhz, based off of the AtTiny85 chip)</strong>, and am wishing to use it with a strip with 24 <strong>3 pin, individually addressable LEDs (WS2812B)</strong>. When I try to compile my code, I get this error:  <code>static_assert(validpin(), "Invalid pin specified");</code> 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:</p>

<pre><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);
}
</code></pre>
 27653: <p>I think what @IgnacioVazquez-Abrams is getting at is:</p>

<pre><code>void setup() {
  FastLED.addLeds&lt;WS2812B, LEDCOUNT&gt;(leds, LEDCOUNT);
}
</code></pre>

<p>Has <code>LEDCOUNT</code> showing up for both the number of LEDs and the data pin identifier.</p>

<p>Try:</p>

<pre><code>void setup() {
  FastLED.addLeds&lt;WS2812B, DATAPIN, GRB&gt;(leds, LEDCOUNT);
}
</code></pre>

<p>This puts <code>DATAPIN</code> in the right place, and also adds the color order typical for WS2812B, <code>GRB</code></p>
