diff options
author | Adam Bell <agbell@gmail.com> | 2017-05-14 21:08:53 -0400 |
---|---|---|
committer | Adam Bell <agbell@gmail.com> | 2017-06-03 10:28:46 -0400 |
commit | 587b0de6e563fa277c8661f2c5c48070bd004f4f (patch) | |
tree | 89ece8c8edec347318349751a1ab8ac35dd45aca /avrdude | |
parent | 82de4d039d39c87a1df68708f3033926c27f7e6c (diff) |
adding lets split keymap
Diffstat (limited to 'avrdude')
-rwxr-xr-x | avrdude | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/avrdude b/avrdude new file mode 100755 index 0000000000..293825e448 --- /dev/null +++ b/avrdude @@ -0,0 +1,14 @@ +#!/bin/bash +set -x +BUILD_DIR=. +TARGET=lets_split_rev2_adam.hex +MCU=atmega32u4 +ls /dev/tty* > /tmp/1; +echo "Reset your Pro Micro now"; +while [[ -z $USB ]]; do + echo "." + sleep 1; + ls /dev/tty* > /tmp/2; + USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; +done; +avrdude -p $MCU -c avr109 -P $USB -U flash:w:$BUILD_DIR/$TARGET |