Keeping The Screen Light On
Join the DZone community and get the full member experience.Join For Free
Miso library provides a feature to turn your phone's screen light on.
import miso miso.reset_inactivity_time()Read the documentation and download miso from here. To make it always on. You can put the call into a loop with ao_sleep.
def light_on(): import miso, e32 miso.reset_inactivity_time() e32.ao_sleep(10, light_on) # forever loop light_on() # always keep light on
Opinions expressed by DZone contributors are their own.