diff options
| author | Selene ToyKeeper | 2018-11-03 16:54:18 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-11-03 16:54:18 -0600 |
| commit | b4d8f74c5fa32b974d7af8c71927822667a24643 (patch) | |
| tree | 2ea10ed0a9926b7eecf3080ffccc3b22c1a5a9ef /bin/flash-tiny85-fuses.sh | |
| parent | Corrected anduril.txt with the new aux LED button mappings. (diff) | |
| parent | Added a help message to build.sh and flash.sh (diff) | |
| download | anduril-b4d8f74c5fa32b974d7af8c71927822667a24643.tar.gz anduril-b4d8f74c5fa32b974d7af8c71927822667a24643.tar.bz2 anduril-b4d8f74c5fa32b974d7af8c71927822667a24643.zip | |
merged trunk and flash-safer branch (clean up flash/build scripts and make flashing less likely to produce bricks)
Diffstat (limited to 'bin/flash-tiny85-fuses.sh')
| -rwxr-xr-x | bin/flash-tiny85-fuses.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/flash-tiny85-fuses.sh b/bin/flash-tiny85-fuses.sh new file mode 100755 index 0000000..e517b2d --- /dev/null +++ b/bin/flash-tiny85-fuses.sh @@ -0,0 +1,8 @@ +#/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) +avrdude -c usbasp -p t85 -u -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m + +# http://www.engbedded.com/cgi-bin/fcx.cgi?P_PREV=ATtiny85&P=ATtiny85&M_LOW_0x3F=0x22&M_HIGH_0x07=0x07&M_HIGH_0x20=0x00&B_SPIEN=P&B_SUT0=P&B_CKSEL3=P&B_CKSEL2=P&B_CKSEL0=P&V_LOW=E2&V_HIGH=DF&V_EXTENDED=FF&O_HEX=Apply+values |
