From 58bc76532e81b9125af3bbb30c115848cfd53c3e Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 11 Mar 2026 14:21:07 +0100 Subject: [PATCH] lilygo_t_display_s3.py: comments --- .../lib/mpos/board/lilygo_t_display_s3.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 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 07b843a4..4c9e115b 100644 --- a/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py +++ b/internal_filesystem/lib/mpos/board/lilygo_t_display_s3.py @@ -29,25 +29,15 @@ except Exception as e: time.sleep(3) machine.reset() -#_BUFFER_SIZE = const(28800) # 320*240*2 / 5.33 -# 153600 (320*240*2) is too much -# 150400 (320*235*2) is too much -# 148480 (320*232*2) is too much -# -# 147200 (320*230*2) is fine! -# 140800 (320*220*2) is fine! -# 108800 (320*170*2) is fine -_BUFFER_SIZE = const(320 * 170 * 2 + 1) # without the + 1 this triggers render_mode = lv.DISPLAY_RENDER_MODE.FULL which is broken on emulated hardware (actual hardware still to test) +_BUFFER_SIZE = const(320 * 170 * 2 + 1) # + 1 is needed to avoid render_mode = lv.DISPLAY_RENDER_MODE.FULL which is buggy fb1 = display_bus.allocate_framebuffer(_BUFFER_SIZE, lcd_bus.MEMORY_INTERNAL | lcd_bus.MEMORY_DMA) -#fb1_aligned = lv.draw_buf_align(fb1, lv.COLOR_FORMAT.RGB565) -#fb2 = display_bus.allocate_framebuffer(_BUFFER_SIZE, lcd_bus.MEMORY_INTERNAL | lcd_bus.MEMORY_DMA) import drivers.display.st7789 as st7789 import mpos.ui mpos.ui.main_display = st7789.ST7789( data_bus=display_bus, frame_buffer1=fb1, - #frame_buffer2=fb2, + # frame_buffer_2 doesn't seem to improve anything display_width=170, display_height=320, color_space=lv.COLOR_FORMAT.RGB565,