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)
12390 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
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)
You need to create an account or log in to post comments to this site.