From 2539f021dc960c3e031e9fcee4e431069b388fcb Mon Sep 17 00:00:00 2001 From: bbkiwi Date: Wed, 29 May 2019 17:05:43 +1200 Subject: [PATCH] Fix ws2812_i2s.c to include ccconfig.h and explicitly invert literals to prevent warning --- embedded8266/user/ws2812_i2s.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/embedded8266/user/ws2812_i2s.c b/embedded8266/user/ws2812_i2s.c index ea9963d..9d00c4f 100644 --- a/embedded8266/user/ws2812_i2s.c +++ b/embedded8266/user/ws2812_i2s.c @@ -34,7 +34,7 @@ Extra copyright info: *******************************************************************************/ - +#include #include "slc_register.h" #include "esp82xxutil.h" #include @@ -455,10 +455,10 @@ static const uint16_t bitpatterns[16] = { #elif defined(WS2812_FOUR_SAMPLE) #ifdef INVERT static const uint16_t bitpatterns[16] = { - ~0b1000100010001000, ~0b1000100010001100, ~0b1000100011001000, ~0b1000100011001100, - ~0b1000110010001000, ~0b1000110010001100, ~0b1000110011001000, ~0b1000110011001100, - ~0b1100100010001000, ~0b1100100010001100, ~0b1100100011001000, ~0b1100100011001100, - ~0b1100110010001000, ~0b1100110010001100, ~0b1100111011001000, ~0b1100110011001100, + 0b0111011101110111, 0b0111011101110011, 0b0111011100110111, 0b0111011100110011, + 0b0111001101110111, 0b0111001101110011, 0b0111001100110111, 0b0111001100110011, + 0b0011011101110111, 0b0011011101110011, 0b0011011100110111, 0b0011011100110011, + 0b0011001101110111, 0b0011001101110011, 0b0011000100110111, 0b0011001100110011, }; #else //Tricky, send out WS2812 bits with coded pulses, one nibble, then the other.