You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
indev=cst816s.CST816S(touch_dev,startup_rotation=lv.DISPLAY_ROTATION._180) # button in top left, good
82
82
83
83
lv.init()
84
-
display.set_rotation(lv.DISPLAY_ROTATION._90) # must be done after initializing display and creating the touch drivers, to ensure proper handling
84
+
mpos.ui.main_display.set_rotation(lv.DISPLAY_ROTATION._90) # must be done after initializing display and creating the touch drivers, to ensure proper handling
Copy file name to clipboardExpand all lines: internal_filesystem/boot_fri3d-2024.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@
63
63
STATE_LOW=0
64
64
65
65
# see ./lvgl_micropython/api_drivers/py_api_drivers/frozen/display/display_driver_framework.py
66
-
display=st7789.ST7789(
66
+
mpos.ui.main_display=st7789.ST7789(
67
67
data_bus=display_bus,
68
68
frame_buffer1=fb1,
69
69
frame_buffer2=fb2,
@@ -76,15 +76,15 @@
76
76
reset_state=STATE_LOW
77
77
)
78
78
79
-
display.init()
80
-
display.set_power(True)
81
-
display.set_backlight(100)
79
+
mpos.ui.main_display.init()
80
+
mpos.ui.main_display.set_power(True)
81
+
mpos.ui.main_display.set_backlight(100)
82
82
83
-
display.set_color_inversion(False)
83
+
mpos.ui.main_display.set_color_inversion(False)
84
84
85
85
lv.init()
86
-
display.set_rotation(lv.DISPLAY_ROTATION._270) # must be done after initializing display and creating the touch drivers, to ensure proper handling
87
-
display.set_params(0x36, bytearray([0x28]))
86
+
mpos.ui.main_display.set_rotation(lv.DISPLAY_ROTATION._270) # must be done after initializing display and creating the touch drivers, to ensure proper handling
0 commit comments