aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-06 19:33:07 -0500
committerGitHub <noreply@github.com>2017-02-06 19:33:07 -0500
commitb5159c964a6cd2997bf49951e0e99ed4d3d38f1e (patch)
tree81b7e6794ff14617b4d0e453f47ee68e3da05d1d
parent4348fb54d6eb80e8d82c0724be647631bdd524d3 (diff)
parent890ecf6a2ae1e782cdcd7750572c339c1ad7bb3a (diff)
downloadqmk_firmware-b5159c964a6cd2997bf49951e0e99ed4d3d38f1e.tar.gz
qmk_firmware-b5159c964a6cd2997bf49951e0e99ed4d3d38f1e.zip
Merge pull request #1036 from nicinabox/lets-split-improvements
Lets Split flashing improvements
-rw-r--r--keyboards/lets_split/readme.md4
-rw-r--r--keyboards/lets_split/rules.mk10
2 files changed, 14 insertions, 0 deletions
diff --git a/keyboards/lets_split/readme.md b/keyboards/lets_split/readme.md
index 6e296737a..a63ce5907 100644
--- a/keyboards/lets_split/readme.md
+++ b/keyboards/lets_split/readme.md
@@ -74,6 +74,10 @@ not be very difficult to adapt it to support more if required.
74Flashing 74Flashing
75-------- 75--------
76 76
77From the keymap directory run `make SUBPROJECT-KEYMAP-avrdude` for automatic serial port resolution and flashing.
78
79Example: `make rev2-serial-avrdude`
80
77If you define `EE_HANDS` in your `config.h`, you will need to set the 81If you define `EE_HANDS` in your `config.h`, you will need to set the
78EEPROM for the left and right halves. The EEPROM is used to store whether the 82EEPROM for the left and right halves. The EEPROM is used to store whether the
79half is left handed or right handed. This makes it so that the same firmware 83half is left handed or right handed. This makes it so that the same firmware
diff --git a/keyboards/lets_split/rules.mk b/keyboards/lets_split/rules.mk
index 1aee5313c..0dc549130 100644
--- a/keyboards/lets_split/rules.mk
+++ b/keyboards/lets_split/rules.mk
@@ -73,3 +73,13 @@ USE_I2C ?= yes
73SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend 73SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
74 74
75CUSTOM_MATRIX = yes 75CUSTOM_MATRIX = yes
76
77avrdude: build
78 ls /dev/tty* > /tmp/1; \
79 echo "Reset your Pro Micro then hit any key to continue..."; \
80 read -n 1 -s; \
81 ls /dev/tty* > /tmp/2; \
82 USB=`diff /tmp/1 /tmp/2 | grep '>' | sed -e 's/> //'`; \
83 avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex
84
85.PHONY: avrdude