Open vossilius opened 7 years ago
There is a bug in ArduinoBoardManager.h It will not compile for ATmega2560 because ATmega1280 and ATmega2560 are combined in the same #elif defined section and when ATmega2560 is defined, the code attempts to assign the undefined symbol __AVR_ATmega1280__ to CPU which causes a compile time error.
The solution is to break the #elif defined section into two sections, one for AVR_ATmega1280 and one for AVR_ATmega2560 and change the CPU assignment in the AVR_ATmega2560 define to CPU = AVR_ATmega2560
I have submitted a pull request with a fix for this and some other issues: https://github.com/backupbrain/ArduinoBoardManager/pull/6
Hi,
thanks for sharing the library. However, I get error trying to compile the example.
I get the error with my Arduino Mega 2560 as well as Controllino (which is based on Arduino Mega). Any thoughts?
Thanks!