Code for the Arduino-based Atmega328