@pythoncoder,
Thanks again for those pointers and i have taken them into account and made changes, that's I converted all the the times I'm working with into seconds, saved as integers.
I now get it, your point is about precision comparison.
As per code in my last reply, would you know as to why the current_time isn't updating in the while loop? Let's say that the time comparison failed, is that affecting the rest of the code in the while loop?
how can I implement time scheduling in micropython
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: how can I implement time scheduling in micropython
I can see no reason for it to fail to update. If you can't get to the bottom of it I suggest you post your latest attempt.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: how can I implement time scheduling in micropython
@zedtech have you ever tried this https://github.com/rguillon/schedule
I found it very smart, however on ESP8266 I had to implement it as frozen module (memory error otherwise)
I found it very smart, however on ESP8266 I had to implement it as frozen module (memory error otherwise)
Re: how can I implement time scheduling in micropython
@JumpZero, no i haven't but will take a look and learn something new. Thanks for your feedback