completed support for Arduino Mega 2560 (now tested)