~beastlykings/flashlight-firmware/custom

« back to all changes in this revision

Viewing changes to bin/flash-tiny85.sh

  • Committer: Selene Scriven
  • Date: 2018-11-03 22:54:18 UTC
  • mfrom: (188.1.36 flash-safer)
  • Revision ID: bzr@toykeeper.net-20181103225418-1vsjrc40xh838ggw
merged trunk and flash-safer branch (clean up flash/build scripts and make flashing less likely to produce bricks)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#/bin/sh
2
2
FIRMWARE=$1
3
 
avrdude -c usbasp -p t85 -u -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -Uflash:w:$FIRMWARE
4
 
# http://www.engbedded.com/cgi-bin/fcx.cgi?P_PREV=ATtiny85&P=ATtiny85&M_LOW_0x3F=0x22&M_HIGH_0x07=0x06&M_HIGH_0x20=0x00&B_SPIEN=P&B_SUT0=P&B_CKSEL3=P&B_CKSEL2=P&B_CKSEL0=P&B_BODLEVEL0=P&V_LOW=E2&V_HIGH=DE&V_EXTENDED=FF
 
3
avrdude -c usbasp -p t85 -u -Uflash:w:$FIRMWARE