flash.sh (271B)
1 #!/bin/bash 2 3 # Kick trackball into bootloader mode, and wait a bit 4 echo -ne 'xJTBL' > /dev/hidraw2 5 sleep 2 6 7 dfu-programmer atmega32u2 erase --suppress-bootloader-mem 8 dfu-programmer atmega32u2 flash ./Mouse.hex --suppress-bootloader-mem 9 dfu-programmer atmega32u2 start