avr code for Pibot controller - uses ATMEGA328P