Long Sleep In Pys60
Join the DZone community and get the full member experience.Join For Free
e32.ao_sleep has a 2147-sec limit. Here is how to sleep longer. Based on dashboard's exttimer
import e32 def sleep(delay, callback): MAX = 2147 if delay > MAX: e32.ao_sleep(MAX, lambda : sleep(delay-MAX, callback)) else: e32.ao_sleep(delay, callback)
Opinions expressed by DZone contributors are their own.