diff options
author | Nic Aitch <nic@nicinabox.com> | 2017-01-26 09:31:27 -0600 |
---|---|---|
committer | Nic Aitch <nic@nicinabox.com> | 2017-01-26 09:31:27 -0600 |
commit | 3131d655638927fb1802c6526f7b9b7afff03a5e (patch) | |
tree | 0e76415bb15788d853a941790d4c5f3a35b2eb66 /keyboards/lets_split/rules.mk | |
parent | 71137deba21bfc392d60cffb1b76216c362beb9a (diff) | |
download | qmk_firmware-3131d655638927fb1802c6526f7b9b7afff03a5e.tar.gz qmk_firmware-3131d655638927fb1802c6526f7b9b7afff03a5e.zip |
Add avrdude target
Diffstat (limited to 'keyboards/lets_split/rules.mk')
-rw-r--r-- | keyboards/lets_split/rules.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk index 1aee5313c1..0dc5491302 100644 --- a/keyboards/lets_split/rules.mk +++ b/keyboards/lets_split/rules.mk @@ -73,3 +73,13 @@ USE_I2C ?= yes SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend CUSTOM_MATRIX = yes + +avrdude: build + ls /dev/tty* > /tmp/1; \ + echo "Reset your Pro Micro then hit any key to continue..."; \ + read -n 1 -s; \ + ls /dev/tty* > /tmp/2; \ + USB=`diff /tmp/1 /tmp/2 | grep '>' | sed -e 's/> //'`; \ + avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex + +.PHONY: avrdude |