- Notifications
You must be signed in to change notification settings - Fork 0
How to set just a simple preferences, without another file in your sketch
Adriano edited this page Jan 14, 2020 · 1 revision
Some times, you just want a simple parameter and do not want save the entire preferences.txt.
If you want start your application with a custom parameter, write it in your sketch.ino file as comment.
The application will parse for this key: **#ino_param:.
So, if you want set for example the board ATMega328, you can write:
/************************** ** Arduino IDE Settings: **#ino_param:board=328 **#ino_param:custom_BOD=88_2v7 **#ino_param:custom_clock=88_8MHz_internal **************************/ Once you start the application, a new preferences file in the temporary folder will be generated and used for your Arduino.