In recognition of Brighton Pride (Sat 5-Aug 2023) this video looks at producing a rainbow on a WS2812B LED strip. That is my light saber wall light.
I’ve done several versions of the wall light, the first predating the Pico-W where I needed to use an ESP-01 to provide. All of them use the same strategy of going from wavelength to RGB colour using the algorithm from Chris Wyman algorithm, “Simple Analytic Approximations to the CIE XYZ Color Matching Functions”.
John Walker did a great write-up on the algorithm, take a read.
The source code can be found on GitHub @jondurrant.
Happy Pride.
