This commit is contained in:
Thomas Farstrike
2025-11-14 11:51:15 +01:00
parent 74c1666252
commit 58157bc3f3
3 changed files with 8 additions and 2 deletions
@@ -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
+1 -1
View File
@@ -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)