initial commit of atmega code for the controller