Katie Steckles, a mathematician based in Manchester, shared her CheerLights tree on Mastodon. It runs on a Raspberry Pi Zero W with a Pimoroni Blinkt HAT and a bit of Python, and when some CheerLights colors looked poor on the Blinkt, she turned them into effects.

The tree is black acrylic with holes arranged like baubles, and the RGB light from the Blinkt shows through them. She credits the laser-cut base and topper to Qwirkshop. She wrote her code to recognize all the HTML color names, with custom routines such as rainbow and candy cane stripes. By then CheerLights used a fixed list of eleven colors, set by anyone on the CheerLights Discord, so the other color names never arrived and those routines stopped running. Rather than retire them, she gave them to colors on the list. In her video, oldlace plays a sweeping rainbow, pink plays red and white candy cane stripes, and orange plays a subtle fireplace effect she wrote for it.
But I’ve sneakily replaced some of the less useful colours with them (“pink”, which doesn’t render well on the Blinkt, now does candycane red and white stripes, and I’ve been inspired to write a subtle fireplace effect for “orange”, which also looks a bit funny on the Blinkt).
Katie Steckles, on Mastodon
She says the video doesn’t show the effects nearly as nicely as they look in real life, and calls it a fun project for any device with Wi-Fi and LEDs. See the tree on Mastodon, and if you want to start your own in Python, our official Python package for the CheerLights API reads the current color for you.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

