Open syntos opened 2 years ago
I wanted to use a piece of APA102 LED strip I had laying around.
My configuration:
/######################## MAIN CONFIG ########################/
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.
Try switching the pin you're using some boards use some pins during setup and having them high or connected to something causes issues.
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.