From bedf91a6f36aa10c2fd06c005ec3e990be7d349d Mon Sep 17 00:00:00 2001 From: Mateusz Salamon Date: Tue, 19 Feb 2019 21:20:39 +0100 Subject: [PATCH] Update WS2812B bits definition. They are wrongly defines as LSB first instead of MSB. --- Src/ws2812b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/ws2812b.c b/Src/ws2812b.c index 11d810f..51de91b 100644 --- a/Src/ws2812b.c +++ b/Src/ws2812b.c @@ -16,8 +16,8 @@ #include "ws2812b.h" -#define zero 0b00000011 -#define one 0b00011111 +#define zero 0b11000000 +#define one 0b11111000 SPI_HandleTypeDef *hspi_ws2812b; ws2812b_color ws2812b_array[WS2812B_LEDS];