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.
Page last edited January 22, 2025
Text editor powered by tinymce.