Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : WS2812 addressing
Author | Message | ||||
Tinine Guru Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
This just seems to be a very cool way to chip-select. Must be a device out there that does this but I havent found it Craig |
||||
chuckallisonusa Newbie Joined: 04/12/2021 Location: United StatesPosts: 2 |
The ws2812 works in the order it is connected. If you want a certain spot the whole chain is populated with information for blanks until the one you want. If you 8 in a chain you need 8 data sets. |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 5648 |
Each WS2812 has 3 shift registers in series, for Red, Green and Blue. As you clock bits in on the input they are clocked out on the output. As each register is 8 bits long you have to clock 24 bits for each WS2812 in the chain. That's why you need to know how many there are - you simply re-write the entire chain to change a single bit because it's actually a single flippin' big shift register. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Tinine Guru Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Oh I get it but I'm just thinking of the on/off aspect. Imagining a string of addressable opto-couplers, SSRs etc., driven by a single output. Craig |
||||
Print this page |