Search found 1 match
- Tue May 17, 2022 6:01 am
- Forum: ESP32 boards
- Topic: Timer and time.sleep function
- Replies: 4
- Views: 5411
Re: Timer and time.sleep function
Python sleep() will pause for an hour, day or whatever if given the proper value. It does not allow other processes take place (in same script) however. A better way is to use an event which will create an event on timeout. Have a look at threading.Timer. It runs your function in a new thread witho...