Hello,
I need to do some conditional compilation tests plateforme dependant.
In particular, i have to distinguish the arduino uno and the Feather 32u4 plateform.
Can you tell me the arduino plateform name for the Adafruit Feather 32u4 plateform ?
Can you tell me the arduino plateform name for the Adafruit Feather 32u4 plateform ?
Use File + Preferences, and enable verbose mode when compiling. You can see the command line options passed to compile when compiling for the two boards. Base your ifdef statement on the command line option for the not-an-Arduino board.
I've found it easier to look in the appropriate boards.txt file. Depending on which board you're using, these files can be in a number of places. On my Win7 installation I have them both in a sub-folder under the Arduino installation folder and in a sub-fold of AppData under my user profile: