This commit is contained in:
Thomas Farstrike
2026-02-23 23:33:48 +01:00
parent 65d7f6e4b3
commit 33862749b7
3 changed files with 15 additions and 7 deletions
@@ -173,10 +173,10 @@ def keypad_read_cb(indev, data):
last_state = data.state
last_repeat_time = current_time
else:
pass # not needed as it doesnt help navigating around in the keyboard:
#print("No repeat yet, send RELEASED to avoid PRESSING?")
#data.state = lv.INDEV_STATE.RELEASED
#last_state = lv.INDEV_STATE.RELEASED
# This doesn't seem to make the key navigation in on-screen keyboards work, unlike on the m5stack_fire...?
#print("No repeat yet, send RELEASED to avoid PRESSING, which breaks keyboard navigation...")
data.state = lv.INDEV_STATE.RELEASED
last_state = lv.INDEV_STATE.RELEASED
# Handle ESC for back navigation (only on initial PRESSED)
if data.state == lv.INDEV_STATE.PRESSED and data.key == lv.KEY.ESC:
+9 -1
View File
@@ -16,6 +16,7 @@ Usage:
"""
import lvgl as lv
from .appearance_manager import AppearanceManager
from .widget_animator import WidgetAnimator
@@ -129,7 +130,14 @@ class MposKeyboard:
def _handle_events(self, event):
code = event.get_code()
#print(f"keyboard event code = {code}")
'''
# DEBUG:
from .event import get_event_name
name = get_event_name(code)
print(f"keyboard event code = {code} is {name}")
'''
if code == lv.EVENT.READY or code == lv.EVENT.CANCEL:
self.hide_keyboard()
return
+2 -2
View File
@@ -102,7 +102,7 @@ if [ "$target" == "esp32" -o "$target" == "esp32s3" -o "$target" == "esp32s3_qem
fi
fi
manifest=$(readlink -f "$codebasedir"/manifests/manifest.py)
frozenmanifest="FROZEN_MANIFEST=$manifest" # Comment this out if you want to make a build without any frozen files, just an empty MicroPython + whatever files you have on the internal storage
#frozenmanifest="FROZEN_MANIFEST=$manifest" # Comment this out if you want to make a build without any frozen files, just an empty MicroPython + whatever files you have on the internal storage
echo "Note that you can also prevent the builtin filesystem from being mounted by umounting it and creating a builtin/ folder."
pushd "$codebasedir"/lvgl_micropython/
rm -rf lib/micropython/ports/esp32/build-$BOARD-$BOARD_VARIANT
@@ -111,7 +111,7 @@ if [ "$target" == "esp32" -o "$target" == "esp32s3" -o "$target" == "esp32s3_qem
# --ota: support Over-The-Air updates
# --partition size: both OTA partitions are 4MB
# --flash-size: total flash size is 16MB
# --debug: enable debugging from ESP-IDF but makes copying files to it very slow
# --debug: enable debugging from ESP-IDF but makes copying files to it very slow so that's not added
# --dual-core-threads: disabled GIL, run code on both CPUs
# --task-stack-size={stack size in bytes}
# CONFIG_* sets ESP-IDF options