Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The minimum value of 0 means that a particular color doesn’t shine at all, and a value of 255 means that a colour shines a max brightness where the more significant bits toggled to 1, the greater the brightness.

For example, if you wanted the green and red LED components to shine at a quarter brightness (64) and for the blue component to be double that brightness level (128), then your data frame would be 01000000(G) 01000000(R) 10000000(B).

Data Transmission

Data is sent as an 800 KHz clock signal, where pulses are read as bits by the LEDs. This is why the term “colour-byte” was/is in quotes. For each pulse a certain amount of “high” time and “low” time will be read as a “0” bit or “1” bit by the LED. The following are the data sheet specifications.

...

Each LED will accept a data frame and pass the remaining frames onto the next LED in series with it.

...

WS2812B-2020 data sheet

View file
nameWS2812B-2020.pdf

WS2812B data sheet

View file
nameWS2812B.pdf