~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to bin/flash-85.sh

  • Committer: Selene Scriven
  • Date: 2016-09-09 21:24:27 UTC
  • mfrom: (169.1.2 add-x85)
  • Revision ID: ubuntu@toykeeper.net-20160909212427-rjth501ui6cqugud
Merged in Mike C's X85 firmware.
It's pretty full-featured and advanced, but requires a special driver.
Still needs more info in its "meta" file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#/bin/sh
 
2
FIRMWARE=$1
 
3
avrdude -c usbasp -p t85 -u -U lfuse:w:0xe2:m -U hfuse:w:0xde: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