diff --git a/gadget/Burn.sh b/gadget/Burn.sh new file mode 100755 index 0000000..bcbca20 --- /dev/null +++ b/gadget/Burn.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +#make the hex file +make all +#erase the memory +sudo dfu-programmer atmega16u2 erase +#rewrite the ROM +sudo dfu-programmer atmega16u2 flash USB_gadget.hex +#reset +sudo dfu-programmer atmega16u2 reset +#clean repository +make clean -- libgit2 0.21.2