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.

pull/325/head
Mike Bell 2022-03-29 23:12:47 +01:00
rodzic eb95636bca
commit b78b292ff8
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -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