From 1756b0beae04f04b6072fcfd2bbe10fb2b4dd116 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 3 Nov 2018 16:41:45 -0600 Subject: added a wrapper to flash fuses and firmware at the same time, like the old scripts did --- bin/flash.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/flash.sh (limited to 'bin') diff --git a/bin/flash.sh b/bin/flash.sh new file mode 100755 index 0000000..019631a --- /dev/null +++ b/bin/flash.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Flashes both fuses and firmware. + +set -e + +BASEDIR=$(dirname "$0") +export ATTINY=$1 ; shift +export PROGRAM=$1 ; shift +if [ ! -f "$PROGRAM" ]; then PROGRAM="$PROGRAM".hex ; fi +$BASEDIR/flash-tiny"$ATTINY"-fuses.sh +$BASEDIR/flash-tiny"$ATTINY".sh "$PROGRAM" -- cgit v1.2.3