Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Keeping The Screen Light On

DZone's Guide to

Keeping The Screen Light On

·
Free Resource
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
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}