NimmLor / esp8266-fastled-iot-webserver

A universal software for all my LED projects, with many awesome features
https://www.thingiverse.com/surrbradl08/designs
GNU General Public License v3.0
366 stars 94 forks source link

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

Open syntos opened 2 years ago

syntos commented 2 years ago

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.

WarDrake commented 2 years ago

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