aboutsummaryrefslogtreecommitdiff
path: root/docs/ws2812_driver.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ws2812_driver.md')
-rw-r--r--docs/ws2812_driver.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ws2812_driver.md b/docs/ws2812_driver.md
index c1b96329e..da5db01db 100644
--- a/docs/ws2812_driver.md
+++ b/docs/ws2812_driver.md
@@ -28,6 +28,17 @@ The default setting is 280 µs, which should work for most cases, but this can b
28#define WS2812_TRST_US 80 28#define WS2812_TRST_US 80
29``` 29```
30 30
31#### Byte Order
32
33Some variants of the WS2812 may have their color components in a different physical or logical order. For example, the WS2812B-2020 has physically swapped red and green LEDs, which causes the wrong color to be displayed, because the default order of the bytes sent over the wire is defined as GRB.
34In this case, you can change the byte order by defining `WS2812_BYTE_ORDER` as one of the following values:
35
36| Byte order | Known devices |
37|-----------------------------------|-------------------------------|
38| `WS2812_BYTE_ORDER_GRB` (default) | Most WS2812's, SK6812, SK6805 |
39| `WS2812_BYTE_ORDER_RGB` | WS2812B-2020 |
40
41
31### Bitbang 42### Bitbang
32Default driver, the absence of configuration assumes this driver. To configure it, add this to your rules.mk: 43Default driver, the absence of configuration assumes this driver. To configure it, add this to your rules.mk:
33 44