Make sure to to download the NeoPixel Arduino library. Below is front and side code that will change the color of the NeoPixel strip - copy it into your Adafruit Arduino IDE as-is and then mod the LED Pins and number of pixels to make it your own. Remember that to program Trinket you need to download the special Adafruit version of the Arduino IDE from the Introduction to Trinket guide.

The Arduino code presented below works equally well on the Trinket Mini and Trinket Pro. But if you have a Trinket M0 board you will need to use the CircuitPython code on the next page of this guide, no Arduino IDE required!

Side Animation

Temporarily unable to load content:

Front Animation

Temporarily unable to load content:

This guide was first published on Sep 04, 2014. It was last updated on Mar 25, 2024.

This page (Arduino Code) was last updated on Mar 25, 2024.

Text editor powered by tinymce.