You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Comments
This commit is contained in:
@@ -99,7 +99,7 @@ class PackageManager:
|
||||
apps_dir = "apps"
|
||||
apps_dir_builtin = "builtin/apps"
|
||||
|
||||
for base in (apps_dir, apps_dir_builtin):
|
||||
for base in (apps_dir, apps_dir_builtin): # added apps override builtin apps
|
||||
try:
|
||||
# ---- does the directory exist? --------------------------------
|
||||
st = os.stat(base)
|
||||
|
||||
@@ -198,6 +198,12 @@ def move_focus_direction(angle):
|
||||
if isinstance(current_focused, lv.keyboard):
|
||||
print("focus is on a keyboard, which has its own move_focus_direction: NOT moving")
|
||||
return
|
||||
if False and isinstance(current_focused, lv.checkbox): # arrow up/down or left/right is the toggle
|
||||
print("focus is on a checkbox, which has its own move_focus_direction: NOT moving")
|
||||
return
|
||||
if False and isinstance(current_focused, lv.slider): # arrows change the slider
|
||||
print("focus is on a slider, which has its own move_focus_direction: NOT moving")
|
||||
return
|
||||
if isinstance(current_focused, lv.dropdown) and current_focused.is_open():
|
||||
print("focus is on an open dropdown, which has its own move_focus_direction: NOT moving")
|
||||
return
|
||||
|
||||
@@ -334,7 +334,7 @@ def create_drawer(display=None):
|
||||
#wake_pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP) # Pull-up enabled, active low
|
||||
#import esp32
|
||||
#esp32.wake_on_ext0(pin=wake_pin, level=esp32.WAKEUP_ALL_LOW)
|
||||
print("Entering deep sleep. Press BOOT button to wake up.")
|
||||
print("Entering deep sleep...")
|
||||
machine.deepsleep() # sleep forever
|
||||
else: # assume unix:
|
||||
lv.deinit() # Deinitialize LVGL (if supported)
|
||||
|
||||
Reference in New Issue
Block a user