-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Redefined define with lolin_s3_mini #10822
Comments
I think that @Jason2866 may help with it. |
@BCsabaEngine Please post your Platformio.ini |
@SuGlider I think the reason for is here
|
Here is my platformio:
|
Yes I think an #ifndef missing here |
@BCsabaEngine - Where is it redefined? Is PlatformIO redefining it in the configuration? |
It already has the arduino-esp32/cores/esp32/esp32-hal-rgb-led.h Lines 14 to 16 in 99e68a0
|
It has been added in #10128 |
I guess that the core file is first compiled and after that the variant header file. So the redefine happens |
But *.h is never compiled. It must be included by some C/CPP file. |
When there is a |
I've searched Arduino code. There are just 3 places where in |
The only way is when Let me check it... |
Ok... found. The order is wrong. It must be in the reverse order. |
@BCsabaEngine @Jason2866 - Please test PR #10841 and let me know. Thanks. |
Thank you for detect problem properly. I have tested the PR, I adopted to my codebase (not a oneline example app), and I confirm, this solves the situation Thank you again! |
Board
ESp32 Lolin S3 mini
Device Description
default
Hardware Configuration
default
Version
v3.1.0
IDE Name
VScode, PlatformIO
Operating System
macOS
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
115200
Description
I got a warning (and can build without -Werror, but I like this option) when use a board that contains RGB led:
The cause of the error is pins_arduino.h for the lolin_s3_mini variant.
How can I include these files in proper order to make the #ifndef works?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: