You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
fri3d_2024: cleanups
This commit is contained in:
@@ -12,7 +12,6 @@ import lvgl as lv
|
||||
import task_handler
|
||||
|
||||
import drivers.display.st7789 as st7789
|
||||
import drivers.indev.cst816s as cst816s
|
||||
|
||||
import mpos.ui
|
||||
import mpos.ui.focus_direction
|
||||
@@ -251,9 +250,9 @@ indev = lv.indev_create()
|
||||
indev.set_type(lv.INDEV_TYPE.KEYPAD)
|
||||
indev.set_read_cb(keypad_read_cb)
|
||||
indev.set_group(group) # is this needed? maybe better to move the default group creation to main.py so it's available everywhere...
|
||||
disp = lv.display_get_default() # NOQA
|
||||
disp = lv.display_get_default()
|
||||
indev.set_display(disp) # different from display
|
||||
indev.enable(True) # NOQA
|
||||
indev.enable(True)
|
||||
|
||||
# Register the input device with InputManager
|
||||
InputManager.register_indev(indev)
|
||||
|
||||
@@ -156,6 +156,7 @@ def init_cam(width, height, colormode):
|
||||
break
|
||||
|
||||
if toreturn:
|
||||
# disable and enable touch pad because camera initialization breaks it
|
||||
try:
|
||||
from mpos import InputManager
|
||||
indev = InputManager.list_indevs()[0]
|
||||
|
||||
Reference in New Issue
Block a user