User_Setup_Select problem #3463
Unanswered
AllenM001
asked this question in
Q&A - General
Replies: 2 comments
-
I ran Read_User_Setup with defines for boards 2 and 3. Both reported perfectly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Editing the file to comment or uncomment a line marks it as changed and the file is reloaded. Using the if clause does not alter the file and seems to allow a cached version to be used. Closing and reopening the IDE does not resolve the problem. This appears to be an Arduino IDE problem and not a User_Setup_Select problem. I apologize for posting in the wrong forum. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I frequently switch between two different boards. I have been commenting out one board and uncommenting the other each time I change boards. This works fine. At the top of my sketch (Arduino ESP32) I put a "#define MyBoard 3" or whatever number I am using so I can tailor the sketch for each board. I put the following lines in the User_Setup_Select.h file:
The warnings indicate that the correct file is included and properly returns. Serial.print statements in the setup script indicate all the correct GPIOs are chosen. However, the display just appears white.
These lines are in my setup and all report correctly:
Can someone explain what is happening here? Why would it matter if the file is included in an if statement?
Beta Was this translation helpful? Give feedback.
All reactions