Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
syntos opened this issue Jan 10, 2022 · 1 comment
Open

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

syntos opened this issue Jan 10, 2022 · 1 comment

Comments

@syntos
Copy link

syntos commented Jan 10, 2022

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants