TWI bootloader for AVR microcontroller