Side quest: a color picker, because we have no idea what green we want
A short side quest in the synced LED lights build: a tiny web page on the lead board that changes every table's color live, so we can pick the final palette on the real lights instead of on a screen.
Some links in this post are Amazon affiliate links. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.
All twenty table lights are built, and the colors still aren’t final. This is a short in-between post about the little tool I made to fix that.
The problem with “forest green”
Our palette has been settled for weeks: black, deep forest green, silver and deep blue. Very elegant. Very wedding.
The thing is, “deep forest green” is a feeling, not a number. An LED doesn’t know what a forest is. It knows three numbers, red, green and blue, from 0 to 255, and it will cheerfully shout whatever you give it through a white plastic diffuser. Our current “forest green” is 16, 140, 40. Is that forest green? Is it “lime someone sat on”? Nobody in this house could tell you until it’s lit up on a table, at night, next to the other four.
So the honest status of our color palette was: we know exactly what we want, as long as nobody asks us to describe it in numbers.
Picking colors on the lights, not on a screen
Until now, the colors were baked into the firmware of every unit. Trying a new green meant editing the code and reflashing a board, then squinting at it. That’s not a way to compare five shades of blue.
So the lead board, the bare ESP32-C3 Super Mini that keeps everyone in sync, now does one more thing: it opens its own little Wi-Fi network. Join it on a phone, open a page, and you get a color picker:
- Live preview: drag the picker, and every light running the new table sketch switches to that color. The first change can take up to five seconds; after that, about a second.
- Palette: edit the show colors, how long each one holds and how long the fade is, then press play to watch the real cycle with them.
- Brightness: one slider for the whole room.
- Keep it: save the palette on the lead, or copy it out as the exact lines of code for the firmware.

How it fits with the units already built
The lead board’s Wi-Fi network runs on the same channel the lights already use to talk to each other (part 5 has the details), so the picker doesn’t get in the way of the sync.
The bigger catch was the twenty finished units, which only knew their five built-in colors. Claude’s fix was to have the lead send two messages every five seconds:
- the original one, unchanged, so any unit still on the old firmware keeps syncing exactly as before;
- a new one that also carries the palette, the timing and the preview color.
Units running the new table sketch follow the new message and ignore the old one. Old units ignore the new message and carry on. That means I can test on two or three lights without touching the rest, and nothing breaks if the two kinds end up on the same tables.
One small detail I liked: to save battery, the table units nap their radios between messages. That’s fine for the show, but it would make the preview feel laggy. So while a preview is running, they keep their radios on, and they go back to napping as soon as the show resumes.
The plan from here
The fun part comes next: dim the lights, put a few units on the actual table runners, and pick the colors by eye. Once the palette is chosen, it gets saved on the lead, and then the remaining question is whether to reflash all twenty units with the new sketch. If I do, any future color change, like for the rental idea from part 8, only needs the lead.
For the wedding itself, the Wi-Fi network gets switched off with one line in the code, so no guest finds a mysterious “Centerpieces” network on their phone.
Next
Picking the final colors, and then the full-length test of all twenty units together in early December.