kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Badger2040W: Fixes to launcher and badger libs.
rodzic
03d5224e3e
commit
1dbc992180
|
@ -9,7 +9,7 @@ import jpegdec
|
|||
APP_DIR = "/examples"
|
||||
|
||||
# Reduce clock speed to 48MHz
|
||||
badger2040.system_speed(badger2040.SYSTEM_NORMAL)
|
||||
badger2040.system_speed(badger2040.SYSTEM_TURBO)
|
||||
|
||||
changed = False
|
||||
exited_to_launcher = False
|
||||
|
|
|
@ -112,7 +112,7 @@ def state_load(app, defaults):
|
|||
|
||||
|
||||
def launch(file):
|
||||
state_set_running(file[1:])
|
||||
state_set_running(file)
|
||||
|
||||
gc.collect()
|
||||
|
||||
|
@ -131,7 +131,7 @@ def launch(file):
|
|||
|
||||
except ImportError:
|
||||
# If the app doesn't exist, notify the user
|
||||
warning(None, "Could not launch: " + file[1:])
|
||||
warning(None, f"Could not launch: {file}")
|
||||
time.sleep(4.0)
|
||||
except Exception as e:
|
||||
# If the app throws an error, catch it and display!
|
||||
|
|
|
@ -75,6 +75,7 @@ class NetworkManager:
|
|||
|
||||
self._sta_if.active(True)
|
||||
self._sta_if.connect(ssid, psk)
|
||||
self._sta_if.config(pm=0xa11140)
|
||||
|
||||
try:
|
||||
await uasyncio.wait_for(self.wait(network.STA_IF), self._client_timeout)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
import launcher # noqa F401
|
Ładowanie…
Reference in New Issue