Two days before our departure for DEF CON, my colleague Emlyne asks if I can help her hack a backpack with LEDs. We already had a mountain of things to do for work so I grabbed parts on hand: an EFX-TEK HC-8+ controller (I designed it), an Adafruit WS2812b LED ring, a button, and a 2" speaker with an inline cap (10uF).
The ring is animated and Em can change the display using the button. That was the useful bit of this project. I have a 1ms background loop that is used for scanning the 165s on the HC-8+. In this loop I added code to play beeps, boops, and monotonic music as well (this is code from an escape room project). Finally, I added a bit of code that could count button clicks. It took a bit of experimenting to get the time thresholds right, but it works nicely. Em is a HUGE Star Wars fan -- in fact, she just completed her own Stormtrooper armor and joined the 501st Garrison in LA. This is the reason or the Star Wars music in the bag.
Note: The HC-8+ uses 4427s to drive 5v outputs -- this is where I connect the speaker; it is not connected directly to an IO pin. The button is connected to one of the 165s.
Hopefully, someone will find something useful in this code. I couldn't do a DEF CON without some sort of Propeller project. Next year it will be P2.