Neopixels

January 24, 2018

As a learning exercise today we were experimenting with neopixels, using the Adafruit library to control them.

Breaking away from the prepackaged example patterns, first we got a simple flash going.

Then incorporated a sinewave and colour to make things more interesting.

For the sake of exploring user interaction we hooked up a potentiometer which controlled the number of individual LEDs being lit.

This gave rise to the idea of making a 1-dimensional PacMan game on a single strip. Here was a basic game mechanic:

Code for the final version is on github.