You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kaleidoscope/plugins/Kaleidoscope-Hardware-Ploop.../examples/PloopyADNS/flash.sh

13 lines
301 B

#! /bin/sh
set -e
echo "* Building"
make OUTPUT_PATH=$(pwd)/_build >/dev/null 2>LOG
echo "* Jumping to bootloader..."
DEVICE=/dev/ttyACM1 focus r
sleep 2s
echo "* Flashing..."
dfu-programmer atmega32u4 erase && dfu-programmer atmega32u4 flash _build/*-latest.hex && dfu-programmer atmega32u4 start