aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkb-elmo <lorwel@mailbox.org>2021-01-15 22:42:30 +0100
committerGitHub <noreply@github.com>2021-01-16 08:42:30 +1100
commit3d70766327422bcd918b6940298f7557ab10d248 (patch)
tree4f1c68b3b48030116f939c835dd045f30d2ea41a /docs
parent0bf0977c02816c12fffc3fd75c11f66d044e0c20 (diff)
downloadqmk_firmware-3d70766327422bcd918b6940298f7557ab10d248.tar.gz
qmk_firmware-3d70766327422bcd918b6940298f7557ab10d248.zip
Add BGR byte order for WS2812 drivers (#11562)
* add byte order bgr for ws2812 * update docs for driver change * Update ws2812_driver.md * Update docs/ws2812_driver.md Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/ws2812_driver.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/ws2812_driver.md b/docs/ws2812_driver.md
index da5db01db..cca6827ec 100644
--- a/docs/ws2812_driver.md
+++ b/docs/ws2812_driver.md
@@ -33,10 +33,11 @@ The default setting is 280 µs, which should work for most cases, but this can b
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. 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: 34In this case, you can change the byte order by defining `WS2812_BYTE_ORDER` as one of the following values:
35 35
36| Byte order | Known devices | 36|Byte order |Known devices |
37|-----------------------------------|-------------------------------| 37|---------------------------------|-----------------------------|
38| `WS2812_BYTE_ORDER_GRB` (default) | Most WS2812's, SK6812, SK6805 | 38|`WS2812_BYTE_ORDER_GRB` (default)|Most WS2812's, SK6812, SK6805|
39| `WS2812_BYTE_ORDER_RGB` | WS2812B-2020 | 39|`WS2812_BYTE_ORDER_RGB` |WS2812B-2020 |
40|`WS2812_BYTE_ORDER_BGR` |TM1812 |
40 41
41 42
42### Bitbang 43### Bitbang