From 1c7e329140e547facb4d5f25b8d39d3f344a76a6 Mon Sep 17 00:00:00 2001 From: david-cermak <38914379+david-cermak@users.noreply.github.com> Date: Tue, 16 Jul 2019 16:14:28 +0200 Subject: [PATCH] RMT: Fix in bitshift of NeoPixel example project (#2986) 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 8a880abd..5067140f 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