Is there a way for the INO file to detect the board selected in the IDE?
The reason I want to do this is I want a project to work on both the Uno and an ATTiny85. I therefore need to conditionally compile settings based upon which board is selected.
Is there a way for the INO file to detect the board selected in the IDE?
The reason I want to do this is I want a project to work on both the Uno and an ATTiny85. I therefore need to conditionally compile settings based upon which board is selected.
If you look at the code in the libraries that come with the Arduino IDE you will see many examples of how different pieces of code are selected depending on the intended Arduino board.
...R