Re: how can I implement time scheduling in micropython
Posted: Sat Dec 09, 2017 2:23 am
@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?
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?