Пример #1
0
def init_power_management():
    virtualtimers.activate(1000) # Start scheduler with 1 second ticks
    pm.set_timeout(5*60*1000) # Set timeout to 5 minutes
    pm.callback(pm_cb) # Go to splash instead of sleep
    pm.feed() # Feed the power management task, starts the countdown...
Пример #2
0
def init_power_management():
    pm.set_timeout(5 * 60 * 1000)  # Set timeout to 5 minutes
    pm.callback(pm_cb)  # Go to splash instead of sleep
    pm.feed(True)
Пример #3
0
def init_power_management():
    virtualtimers.activate(1000)  # Start scheduler with 1 second ticks
    pm.set_timeout(5 * 60 * 1000)  # Set timeout to 5 minutes
    pm.callback(cbSleep)  # Show sleep message
    pm.feed()  # Feed the power management task, starts the countdown...