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. Try out the “blink” sketch and confirm you can upload code to the board. 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 Pro Trinket.

Grab the sample sketch for the bike wheel from GitHub:

The “bikewheel” folder contains the Arduino sketch for this project.

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 “bikewheel” 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. Learn how to add different ones on the Genesis Poi "preparing images" page. The bike wheel sameple sketch uses image 32 pixels high. 

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.

Before proceeding, ensure your circuit runs the sample code and switches images when you press the button:

This guide was first published on Jul 29, 2015. It was last updated on Jul 29, 2015.

This page (Code) was last updated on May 27, 2023.

Text editor powered by tinymce.