aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-08-05 01:49:46 -0600
committerSelene ToyKeeper2019-08-05 01:49:46 -0600
commit09213cc3c27b70727f8296f8f661a308100ff40c (patch)
tree590e59a29adb91fe00abb1a0deddf28cdf9bed1f /bin
parentmerged Emisar D4v2 branch, or at least a sanitized version of it (diff)
downloadanduril-09213cc3c27b70727f8296f8f661a308100ff40c.tar.gz
anduril-09213cc3c27b70727f8296f8f661a308100ff40c.tar.bz2
anduril-09213cc3c27b70727f8296f8f661a308100ff40c.zip
added scripts to flash attiny1634, which were missing before
Diffstat (limited to 'bin')
-rwxr-xr-xbin/flash-tiny1634-fuses.sh9
-rwxr-xr-xbin/flash-tiny1634.sh3
2 files changed, 12 insertions, 0 deletions
diff --git a/bin/flash-tiny1634-fuses.sh b/bin/flash-tiny1634-fuses.sh
new file mode 100755
index 0000000..1bc73e1
--- /dev/null
+++ b/bin/flash-tiny1634-fuses.sh
@@ -0,0 +1,9 @@
+#/bin/sh
+# 8 MHz, 64ms boot delay, enable flashing
+# (everything else disabled)
+# Use low fuse 0xD2 for 4ms startup delay,
+# or 0xE2 for 64ms (useful on a twisty light)
+# Use high fuse 0xDE for BOD 1.8V,
+# or 0xDF for no BOD
+avrdude -c usbasp -p t1634 -u -U lfuse:w:0xe2:m -U hfuse:w:0xde:m -U efuse:w:0xff:m
+
diff --git a/bin/flash-tiny1634.sh b/bin/flash-tiny1634.sh
new file mode 100755
index 0000000..2eb9b77
--- /dev/null
+++ b/bin/flash-tiny1634.sh
@@ -0,0 +1,3 @@
+#/bin/sh
+FIRMWARE=$1
+avrdude -c usbasp -p t1634 -u -Uflash:w:$FIRMWARE