Datasheet

Now you're ready to use avrdude. Open up your command line and enter in this line (but don't hit return)
avrdude -c usbtiny -p attiny85
Now plug in the Trinket into the computer's USB port and/or press the reset button to enter the bootloader. You
should see the red LED pulsing. Now press return, you should get the same response as shown here:
If you get the response
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)
the bootloader is not active, make sure you see the red LED pulsing, press the reset button to start the bootloader
again.
Programming in a Blink example
For more details on using avdude and avr-gcc, you'll need to read a detailed tutorial or book on those subjects.
However, you can do a basic test by uploading the following HEX file, which will blink the #1 LED once a second on
and off. (Its a bit chunky as blink.hex's go as it has all the Arduino IDE stuff in there too. If you wrote it in straight-C it
would be like 100 bytes) - if you want to see the source code for this, it's basically the Arduino file->examples->basics-
>blink demo with 1 as the LED pin
Click the button to download it and place it in the same directory as your command prompt, in these screenshots that's
C:\Users\ladyada
© Adafruit Industries https://learn.adafruit.com/introducing-trinket Page 31 of 43