-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Assigning a board to a sketch #3228
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
Comments
I love this idea. During saving of the sketch, if the IDE remembered the board, processor, port, and any other boards.txt menu selections the user made on the Tools menu when working on the sketch, and then re-loaded those selections when opening the sketch, that would be fantastic. I imagine this may be a bit difficult to code since you can have multiple sketches open at one time. The code would have to take into consideration which window is in the foreground and active. Your idea of line in the sketch to indicate the board is kind of an IDE directive and interesting. |
This is a good idea, but shouldn't be limited to just the board/port/etc I personally would like a platform.txt style approach for each sketch (optional file). Comments in the code can be removed by unknowing users. Sometimes I want to test with C++11 instead of C++98 or use some of the many other compiler/linker options, which cannot be changed without hard restarting the IDE. |
Duplicate of arduino/arduino-ide#2438. Wontfix. Arduino Create will provide a similar feature |
Would it be possible that this would be reconsidered at least partially? |
Bump! |
To help anyone with this problem: If you start two arduino processes (by double-clicking your arduino icon twice) instead of two windows (by opening another file from an existing window) you can select different boards in the two different windows. (only if they run under separate procesess!) It would still be awesome to not need this workaround and have the board selection saved in the .ino :) |
IMO the most simple way would be to hardcode-config the targeted board type by configuration in Sketch (e.g. #pragma config...) such as |
Could someone please make it so that Arduino IDE automatically changes the board (and board model) based on the sketch that's opened.
Having three-four different boards + board models, it is kinda tedious to select the board every time I open the sketch so something like "//BOARD=mega" that is added to the sketch and IDE automatically changes the board type would be really nice.
The text was updated successfully, but these errors were encountered: