FastLED library not working with ESP32

Hello, I want to control some WS2812B LED lights with an ESP32, but I get this error "static assertion failed: Invalid pin specified". I'm using pin 35 on the ESP32. Here is my code:

#include <Arduino.h>
#include <FastLED.h>

CRGB leds[1];

void setup()
{
    FastLED.addLeds<WS2812B, 35, GRB>(leds, 18);
    FastLED.setBrightness(255);

    leds[0] = CRGB::Red;
    FastLED.show();
}

void loop()
{

}

Thanks.

Did you do a Google search for "static assertion failed: Invalid pin specified esp32"?

Yeah, can't find a clear answer on why it won't work, but pins 26 and 27 work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.