lincomatic/Colorduino — pull request #1 by wiltwong (2012-07-08 04:08:02+00:00)
Title: Added support for __AVR_ATmega1280__ and __AVR_ATmega2560__

All the changes are surrounded by "#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)" so the changes should be transparent to other AVR types.

The port mappings have been modified in the definitions and the IO initialization to match the ports on the Arduino Mega and the initialization for Timer2 was modified. For some reason the existing code did not work with the ATmega1280, not sure why, the datasheet is identical and I believe I am doing the same thing, except just hard coding the values irregardless of what the defaults are on start up. I have tested the code on my Arduino Mega (1280).