-
Notifications
You must be signed in to change notification settings - Fork 7.6k
fix NodeMCU-32S .build.board property #812
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
Conversation
The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx". C macro names should never have a "-" sign. * current: ARDUINO_NodeMCU-32S * should be: ARDUINO_=NodeMCU_32S
What about the |
Not necessary for correct board recognition in Arduino. Compare ESP8266/Arduino boards.txt:
You can detect that board type in your code by // correct board in IDE selected?
#ifndef ARDUINO_ESP8266_WEMOS_D1MINI
#error Please select board "WeMos D1 R2 & mini"!
#endif With the current config you need // NodeMCU ESP-32S - V1.1 LED is HIGH active
#ifdef ARDUINO_NodeMCU-32S
#define LEDPIN 2
#endif which is really weird because of the "-" sign in the used macro 😁 ! This really works (just tested half an hour ago with a generic blink sketch) but you could think its equivalent to But I think it would be nice to clean up the config a bit. |
Yes, I agree. fix all the small things and the big things will take care of themselves! |
Just one more thing: The variant field is used to build the path to the variant config. For the mentioned WeMos D1 mini you get Here you see the effect of the build.board parameter, too: For NodeMCU-32S we get:
BTW: The compiler throws Conclusion: No, we should not change the |
* fix NodeMCU-32S .build.board property The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx". C macro names should never have a "-" sign. * current: ARDUINO_NodeMCU-32S * should be: ARDUINO_=NodeMCU_32S * fix compiler flags to be compatible to ESP8622/Arduino see also "fix NodeMCU-32S .build.board property" #812 (#812 (comment)) `-DARDUINO_BOARD={build.board}` **is missing** * Revert "fix NodeMCU-32S .build.board property" This reverts commit ea57b14.
* fix NodeMCU-32S .build.board property The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx". C macro names should never have a "-" sign. * current: ARDUINO_NodeMCU-32S * should be: ARDUINO_=NodeMCU_32S * fix compiler flags to be compatible to ESP8622/Arduino see also "fix NodeMCU-32S .build.board property" #812 (espressif/arduino-esp32#812 (comment)) `-DARDUINO_BOARD={build.board}` **is missing** * Revert "fix NodeMCU-32S .build.board property" This reverts commit ea57b1496a2e87d3977a31a29a4cf7d63216f008.
* fix NodeMCU-32S .build.board property The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx". C macro names should never have a "-" sign. * current: ARDUINO_NodeMCU-32S * should be: ARDUINO_=NodeMCU_32S * fix compiler flags to be compatible to ESP8622/Arduino see also "fix NodeMCU-32S .build.board property" #812 (espressif/arduino-esp32#812 (comment)) `-DARDUINO_BOARD={build.board}` **is missing** * Revert "fix NodeMCU-32S .build.board property" This reverts commit ea57b1496a2e87d3977a31a29a4cf7d63216f008.
The .build.board=xx proptery is used for generating a macro named "ARDUINO_xxx".
C macro names should never have a "-" sign.