ATmega328p code for Phoenix graphics