Go Down

Topic: Can I get the program to detect the IDE settings? (Read 512 times) previous topic - next topic

aardweeno

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.

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up