Skip to content

Instantly share code, notes, and snippets.

Last active Jan 14, 2018
What would you like to do?
ls /dev/tty* > /tmp/1;
echo "Reset your Pro Micro now";
while [[ -z $USB ]]; do
sleep 1;
ls /dev/tty* > /tmp/2;
USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`;
avrdude -p m32u4 -c avr109 -P $USB -U eeprom:w:./eeprom-lefthand.eep -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment