Datasheet
Programming with AVRdude
For more technical users, rather than using the Arduino IDE, they may want to program the Trinket directly with AVR-
GCC as the compiler, vi/emacs as their editor and AVRdude as the uploader. That's easy to do!
Target the Attiny85 as the chip used in avr-gcc, with F_CPU at 8MHz using the internal oscillator.
To use avrdude a minor change must be made to to avrdude.conf. To figure out where the avrdude.conf is, open up a
command window (windows: cmd, mac: Terminal, linux: rxvt etc) and type in avrdude -v
Look for the line System wide configuration file is ..... thats where avrdude.conf is.
Because the USB bootloader is a little different than an off-the-shelf programmer, we have to update the configuration
file to have a longer erase delay. This does not affect programming bare Attiny85 chips, so you can use this
configuration file with Trinkets or raw chips without any problems.
The Short Way
Download the new avrdude.conf by clicking on the button, rename the old avrdude.conf file to avrdudeconf.bak and
copy this new one into the same directory
This may not work if you're not running the exact same version of avrdude that we are, in which case, just go down to
"the long way" (its really not that long)
Download the updated Trinket-friendly
avrdude.conf
https://adafru.it/cDZ
A slightly different configuration file is needed for Mac:
avrdude.conf (Mac version)
https://adafru.it/cEx
You can also find a Linux version of the avrdude.conf file here:
© Adafruit Industries https://learn.adafruit.com/introducing-trinket Page 25 of 43