Delay
-
Hello! I am wondering how to replace delay with millis, the delay pauses the module which I do not want, I'd like to do other stuff while something is counting for example.
-
-
@AgreeDK will this method work in python?
-
Use timers to implement non-blocking code. Supported in Python and uiFlow.
-
@morrischen no, did not see you ask for Python solution ;-)
-
You can try this:
https://www.google.com/amp/s/techtutorialsx.com/2017/10/02/esp32-micropython-creating-a-thread/amp/
But this may not work properly with all modules included in micropython firmware. You need also micropython version 1.14.