From e0727c2d227cf2e90196808d692320ba9b7ed4e6 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 23 Feb 2026 23:11:33 +0100 Subject: [PATCH] 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. --- internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py b/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py index 9e7eceec..5e3af8e7 100644 --- a/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py +++ b/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py @@ -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