I have several concurrent Arduino projects with different boards and processors including a Nano and Pro Micro. As the project does not save the board and processor settings, I have on occasion attempted to load code compiled for a Nano into a Pro Micro. I think I bricked a board this way. I would like to add code to verify that the compiler settings are correct. I used this code for a Pro Micro: (I think this should work...)
#if !defined(ARDUINO_AVR_PROMICRO) || (F_CPU != 16000000)
#error Pro Micro 16MHz required
#endif
Where do I search on my hard drive or the web for board and processor #define such as "ARDUINO_AVR_PROMICRO", "__AVR_ATmega32U4__", and also for #define for the Nano board and its processor settings such as "ATmega328P", "ATmega328P (old bootloader)", and "ATmega168"?
I have searched for, but haven't found "#define ARDUINO_AVR_PROMICRO" defined anywhere on the web, in this forum or on my hard drive, though did find a "#ifdef ARDUINO_AVR_PROMICRO" after going though a lot of source code. I would rather find a simpler way.
Thank you for your time! -Jim