Chat freely about anything...

User avatar
By Piira
#41121 I have just got some ESP modules and I am trying to understand how to use them. As I have been reading documentation and forum posts I have seen that WiFi and TCP/IP stacks might fail or module resets if user code is executing for more then 2ms or maybe 50ms without a delay (ms), yield or return from main loop.

Then I had a look at the LiquidCrystal library and noticed that the begin function starts with a delay of 50ms created with delayMicroseconds and then several other delays are also made with delayMicroseconds so the execution will be at lest 60ms.

In this post WORKING LIBRARIES AND MODULES it is stated that the LiquidCrystal library is tested and working and also I get it working but is it safe to use it in combination with WiFi? Do I need to modify the library to use delay (ms) instead of delayMicroseconds for the longer delays?