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);
}