aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build.sh6
-rwxr-xr-xbin/flash.sh7
2 files changed, 13 insertions, 0 deletions
diff --git a/bin/build.sh b/bin/build.sh
index 6920a3f..ddd2a72 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -3,6 +3,12 @@
# Instead of using a Makefile, since most of the firmwares here build in the
# same exact way, here's a script to do the same thing
+if [ -z "$1" ]; then
+ echo "Usage: build.sh MCU myprogram"
+ echo "MCU is a number, like '13' for attiny13 or '841' for attiny841"
+ exit
+fi
+
export ATTINY=$1 ; shift
export PROGRAM=$1 ; shift
export MCU=attiny$ATTINY
diff --git a/bin/flash.sh b/bin/flash.sh
index 019631a..0423c90 100755
--- a/bin/flash.sh
+++ b/bin/flash.sh
@@ -2,6 +2,13 @@
# Flashes both fuses and firmware.
+if [ -z "$1" ]; then
+ echo "Usage: flash.sh MCU myprogram[.hex]"
+ echo "MCU is a number, like '13' for attiny13 or '841' for attiny841"
+ echo "The .hex suffix is optional."
+ exit
+fi
+
set -e
BASEDIR=$(dirname "$0")
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.