Datasheet

For example, to read an analog voltage on pin #2, you would call analogRead(1) to read an analog
voltage on pin #4 call analogRead(2)
This is a bit confusing because the analog pins are numbered differently than the digital pins!
analogWrite()
There are a few PWM outputs on the Trinket, you can call analogWrite() on digital #0, #1 and #4.
For example, to pulse the built-in LED slowly, upload this code:
© Adafruit
Industries
https://learn.adafruit.com/introducing-trinket Page 42 of 65