Closed charitha95 closed 3 years ago
Your problem lies with the analogRead(ANALOG_PIN)
statement. The ESP8266's ADC is quite slow and continually sampling the analog pin in the loop() function will muck with the WiFi. Try adding a timer delay so that AnalogRead() only runs every 10ms.
delaying by 5ms did the trick. Thank you.
First of all, let me thank you for this amazing library which saves our time a lot π.
The issue um facing is really strange for me. When I use
ws2812fx.trigger();
with a web server, the server stop working.So I created a small sketch to re-produce the issue. (code looks a little big but you just have to change the pins and wifi credentials and hit the local wifi IP which displays on the serial monitor, then the web page will serve).
Scenario: Basically, it has 3 buttons. The first two buttons to change the
FX_MODE
via connecting to the server and getting a response back, which works.3rd button which is "Sound to light", will change the effect but the server will stop working after the execution. It will never get a response back as well. (uses
ws2812fx.trigger()
)Any help would be much appreciated. I have been stuck in this for about 2 days and still, I don't have any clue π€·ββοΈππ.
Please replace your pins and wifi credentials when testing.