lilygo_t_display_s3: different rotation so buttons make sense

Otherwise, with 90 degree rotation, the PREV and NEXT buttons should be
swapped. With 270 degree rotation, they can remain.
This commit is contained in:
Thomas Farstrike
2026-02-23 23:11:33 +01:00
parent e8601c5b05
commit e0727c2d22
@@ -58,14 +58,14 @@ mpos.ui.main_display.init()
mpos.ui.main_display.set_backlight(100) # works
lv.init()
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
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
mpos.ui.main_display.set_color_inversion(True)
# Button handling code:
from machine import Pin
btn_a = Pin(0, Pin.IN, Pin.PULL_UP) # 1
btn_b = Pin(14, Pin.IN, Pin.PULL_UP) # 2
btn_a = Pin(0, Pin.IN, Pin.PULL_UP)
btn_b = Pin(14, Pin.IN, Pin.PULL_UP)
# Key repeat configuration
# This whole debounce logic is only necessary because LVGL 9.2.2 seems to have an issue where