It's a great idea to get your software all set up and loaded onto your Pro Trinket right away, to make testing your connections easier later on.

If this is your first time using Pro Trinket, follow the Adafruit Arduino IDE Setup for guidance; a couple extra steps are required compared to typical Arduino Uno programming — the Introducing Pro Trinket guide may help.

If you’re not already running the Arduino IDE version 1.6.4 or later, this is a really good time to upgrade. It greatly simplifies installing libraries and support for alternate boards such as Trinket.

Software for the double staff project can be fetched from GitHub:

The “dblstaff” folder contains the Arduino sketch for this project. The “convert” folder contains a utility for processing images — we’ll cover that on a later page. The other folders can be ignored — they’re for other projects that evolved from the same code base.

This project also requires the Adafruit DotStar library for Arduino. Use the Library Manager to install this (Sketch→Include Library→Manage Libraries…), or if you’re using an older version of the Arduino IDE, it can be downloaded and installed manually:

There are two files in the “dblstaff” folder, which will open as two tabs in the Arduino sketch. The second file/tab — graphics.h — contains the bitmaps and color palettes for the different modes. We’ll explain how to add different ones later on.

I can compile the code but it won’t upload to the Pro Trinket board!

You might have a “charge only” USB cable. Definitely need the normal “charge+data” type for this. Switch it out for a different cable and try again.

Also, be sure you've selected "Pro Trinket 5V/16MHZ" from the tools dropdown.

This guide was first published on Aug 25, 2015. It was last updated on Jul 24, 2024.

This page (Code) was last updated on Jul 24, 2024.

Text editor powered by tinymce.