Including a user setup configuration in an Arduino sketch #1521
-
Hey again, All the best, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I have the same need. I had TFT_eSPI copied as a local library, but I now want to have it as an external library in platformio. |
Beta Was this translation helpful? Give feedback.
-
May I propose that if a definition is found in the main sketch, it is used instead of what's found in user_setup.h? This way existing projects won't be broken. |
Beta Was this translation helpful? Give feedback.
-
The Arduino IDE environment hides any #defines within sketches from libraries, presumably to prevent chaos from noobs. In platformIO the normal approach is to use your platformio.ini file as described here: |
Beta Was this translation helpful? Give feedback.
-
Yes, it is here now. |
Beta Was this translation helpful? Give feedback.
-
See here for a work-around that allows the setup file to be included in the sketch: |
Beta Was this translation helpful? Give feedback.
See here for a work-around that allows the setup file to be included in the sketch:
#2007 (comment)