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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login