#!/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