This PlatformIO custom board definition was created to include a default set of fuse values for the ATTiny85. It's derived from the standard ATTiny85 board definition. It originally came from troubleshooting some issues with setting fuses on Atmel AVR targets in PlatformIO.
The reason I created this board definition was to be able to use the pio run -t fuses
command at default to set an ATTiny85 to run at 8mHz (rather than the default of 1mHz). This is helpful, because I've got a bunch of bare chips (rather than an breakout or dev board like the Adafruit Trinket).
The fuse settings are:
fuse | value |
---|---|
low | 0xE2 |
high | 0xDF |
extended | 0xFF |
The default low fuse setting (0x62
) enable clock division by 8. The setting the low fuse to 0xE2
disables that setting. You can inspect AVR fuse values at http://www.engbedded.com/fusecalc.
I also have some info on AVRDUDE and setting fuses on Atmel AVRs.