Pure avr c code for the the Arduino Mega 2560