esp8266-fastled-iot-webserver icon indicating copy to clipboard operation
esp8266-fastled-iot-webserver copied to clipboard

Cannot compile for Wemos D1 R2 board when using APA102 LED strip.

Open syntos opened this issue 3 years ago • 1 comments

I wanted to use a piece of APA102 LED strip I had laying around.

My configuration:

/######################## MAIN CONFIG ########################/ #define LED_TYPE APA102 // You might also use a WS2811 or any other strip that is Fastled compatible #define DATA_PIN D3 // Be aware: the pin mapping might be different on boards like the NodeMCU #define CLK_PIN D5 // Only required when using 4-pin SPI-based LEDs #define CORRECTION TypicalLEDStrip // If colors are weird use TypicalLEDStrip #define COLOR_ORDER BGR // Change this if colors are swapped (in my case, red was swapped with green) #define MILLI_AMPS 3000 // IMPORTANT: set the max milli-Amps of your power supply (4A = 4000mA) #define VOLTS 5 // Voltage of the Power Supply

I get the error: error: static assertion failed: Invalid pin specified static_assert(validpin(), "Invalid pin specified");

If I switch to WS2812B strip and comment out the CLK_PIN the code is compiling fine.

syntos avatar Jan 10 '22 13:01 syntos

Try switching the pin you're using some boards use some pins during setup and having them high or connected to something causes issues.

WarDrake avatar Jan 12 '22 03:01 WarDrake