From f87ff8ae1847a4ffbf10e4ddf457152d0bfcbdfd Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 29 Jun 2022 00:57:53 +0200 Subject: [PATCH] wip: ploopymini flash.sh Signed-off-by: Gergely Nagy --- .../examples/PloopyMini/flash.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 plugins/Kaleidoscope-Hardware-Ploopy-Trackball-Mini/examples/PloopyMini/flash.sh diff --git a/plugins/Kaleidoscope-Hardware-Ploopy-Trackball-Mini/examples/PloopyMini/flash.sh b/plugins/Kaleidoscope-Hardware-Ploopy-Trackball-Mini/examples/PloopyMini/flash.sh new file mode 100755 index 00000000..8209ea19 --- /dev/null +++ b/plugins/Kaleidoscope-Hardware-Ploopy-Trackball-Mini/examples/PloopyMini/flash.sh @@ -0,0 +1,12 @@ +#! /bin/sh +set -e + +echo "* Building" +make OUTPUT_PATH=$(pwd)/_build >/dev/null + +echo "* Jumping to bootloader..." +DEVICE=/dev/ttyACM1 focus device.reset +sleep 2s + +echo "* Flashing..." +dfu-programmer atmega32u4 erase && dfu-programmer atmega32u4 flash _build/PloopyMini-latest.hex && dfu-programmer atmega32u4 start