AVR scripts and interface code