AVR code supporting hex robot