Code for atmega processor