gerenterprise.blogg.se

Programming adafruit trinket 5v
Programming adafruit trinket 5v






programming adafruit trinket 5v

NOTE: After posting this code I found that there was an issue using PWM on pin 4.

programming adafruit trinket 5v

It is important to disconnect the trinket from the PCB when uploading code because digital pin #4 is shared with the USB port. The main loop simply cycles through a series of colors with a delay between each color change. The first part of the code defines the pins we want to use and provides functions for writing to the LEDs. First of all follow the instructions on the Adafruit web site for setting up your Arduino IDE for use with the trinket. We are now ready to write some code and upload it to the trinket.








Programming adafruit trinket 5v