Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ESP32 with enabled WiFi produces random colors and flickering on Neopixel #507
It seems that the interrupt handling of the wifi stack is disturbing the output of the signal to handle the ws2801 (neopixel) correctly. I have a sketch which is basically like this example: https://github.com/espressif/esp-idf/blob/master/examples/protocols/sntp/main/sntp_example_main.c
in combination with this main method:
The loopTask method contains e.g. the following:
If I comment out the obtain_time() method, everything works very reliable. But with the obtain_time method included, I have some leds with random colors and in general random leds lighting up.
I already tried the new version of "clockless_esp32.h" as mentioned here: samguyer@b1ffc70 but without any effect
I just integrated the RMT based solution into the clockless_esp32.h file https://github.com/MartyMacGyver/ESP32-Digital-RGB-LED-Drivers/blob/master/esp-idf/demo1/components/ws2812/ws2812.cpp
The timings are currently hard coded for the WS2812 but it works perfectly! Maybe thats a better solution than the bit banging.
Hey everybody, I always had the problem that my ESP32 resetted on FastLED.show();