From 869425712427fc28d42affa381356754462a241e Mon Sep 17 00:00:00 2001 From: David Cermak Date: Sun, 14 Jul 2019 11:00:39 +0200 Subject: [PATCH] RMT: Fix in bitshift of NeoPixel example project Fixed bit shift in demo application of using RMT peripheral. Init data array to be transmitted was off by one, as for the first iteration (i==0) the mask was 1<<8, which results in shifted RGB value in color variable Closes https://github.com/espressif/arduino-esp32/issues/2921 --- .../ESP32/examples/RMT/RMTWriteNeoPixel/RMTWriteNeoPixel.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ESP32/examples/RMT/RMTWriteNeoPixel/RMTWriteNeoPixel.ino b/libraries/ESP32/examples/RMT/RMTWriteNeoPixel/RMTWriteNeoPixel.ino index 8a880abdd18..5067140fbd6 100644 --- a/libraries/ESP32/examples/RMT/RMTWriteNeoPixel/RMTWriteNeoPixel.ino +++ b/libraries/ESP32/examples/RMT/RMTWriteNeoPixel/RMTWriteNeoPixel.ino @@ -62,7 +62,7 @@ void loop() for (led=0; led