Sujet : Re: Positional/physical addressing
De : ${send-direct-email-to-news1021-at-jusme-dot-com-if-you-must} (at) *nospam* jusme.com (Ian)
Groupes : sci.electronics.designDate : 25. Jun 2025, 18:30:23
Autres entêtes
Organisation : Wet Socks!
Message-ID : <slrn105ochf.41d.${send-direct-email-to-news1021-at-jusme-dot-com-i@vm46.home.jusme.com>
References : 1 2 3 4 5
User-Agent : slrn/1.0.3 (Linux)
On 2025-06-24, Jeroen Belleman <
jeroen@nospam.please> wrote:
WS2812 LED chips do something like that. The first chip in the chain
absorbs the first three bytes and passes on all that come after, and
so on down the chain. Wait 50 us and the first chip in the chain is
ready again to intercept its three bytes.
That's not quite how they work. The whole chain is one big shift register,
(24 bits per device), with 1's and zero's being shifted along as broad
or narrow pulses. When the pulses stop for a while*, the 24 bits sitting
in the "shift register" are latched into the "DAC register" and the
colour changes.
I think I saw that there was some variant of the WS2812 that went into
a bypass mode on failure, to avoid breaking all that follow. Exactly what
counted as failure wasn't clear.
* An intersting / irritating bug had the firmware not waiting long enough
(= at all) between sending updates, so although the string was buisily
clocking data through it, nothing was happening on the lights. Getting the
bit count wrong can produce some pretty patterns, if you like migraines.
-- Ian"Tamahome!!!" - "Miaka!!!"