Don't slow down the system clock too much at the top of launcher - there's no need to save battery if the app will switch the badger off when it's finished anyway.

This commit is contained in:
Mike Bell 2022-03-29 23:12:47 +01:00
parent eb95636bca
commit b78b292ff8
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@ import time
import machine
import badger2040
# We're going to keep the badger on, so slow down the system clock if on battery
badger2040.system_speed(badger2040.SYSTEM_SLOW)
rtc = machine.RTC()
display = badger2040.Badger2040()

View File

@ -7,8 +7,8 @@ from badger2040 import WIDTH
import launchericons
import badger_os
# Reduce clock speed to 48MHz if on USB or 12MHz if on battery
badger2040.system_speed(badger2040.SYSTEM_SLOW)
# Reduce clock speed to 48MHz
badger2040.system_speed(badger2040.SYSTEM_NORMAL)
changed = False
exited_to_launcher = False