Music visualization & simple animations on FW Desktop RGB fan

I was a little disappointed that the fan’s RGB lights did not seem to have an interface exposed in /sys/class/leds/, and instead relied on the nice framework tool that uses some sort of embedded controller, so I took it upon myself to write a tiny Rust program to leverage framework-system:framework-lib, as running the cli tool many times per second wasn’t really ideal. I wanted to keep it minimal, so it’s not very configurable, other than the constants in consts.rs. Initially, I just wanted to spin a color gradient around, but I just couldn’t help myself and added in a little music visualizer for mpd.

It’s mainly for me, but if anyone uses this, modifies for their own use, or inspires them, then here you go.

4 Likes

Ooooh I’ll have to try this out! :eyes:

Thanks for the great repo, and excuse to do some Rust programming! I forked it and added a clap CLI, some more animation modes, and the option to have the animation speed track the fan speed: GitHub - joshhubert-dsp/framework_rgbafan: Music visualizer (mpd) and simple animations on the Framework Desktop Fan · GitHub

PR with details of updates here: some more animation modes, a clap cli, some refactoring by joshhubert-dsp · Pull Request #1 · jazz-g/framework_rgbafan · GitHub