From 26272b08f09d98a078db8808a8f5758ff1ec9f20 Mon Sep 17 00:00:00 2001 From: arktrin Date: Thu, 23 Dec 2021 22:32:23 +0300 Subject: [PATCH] clarify the 52/53 px offset oddity --- lvgl_tft/st7789.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lvgl_tft/st7789.c b/lvgl_tft/st7789.c index a7e8ac4..4e03786 100644 --- a/lvgl_tft/st7789.c +++ b/lvgl_tft/st7789.c @@ -98,9 +98,9 @@ void st7789_init(lv_disp_drv_t *drv) st7789_set_orientation(drv, ST7789_INITIAL_ORIENTATION); } -/* The ST7789 display controller can drive up to 320*240 displays, when using a 240*240 - * or 240*135 displays there's a gap of 80px or 40/52/53px respectivly, we need to edit - * the coordinates to take into account those gaps, this is not necessary in all orientations. */ +/* The ST7789 display controller can drive up to 320*240 displays, when using a 240*240 or 240*135 + * displays there's a gap of 80px or 40/52/53px respectively. 52px or 53x offset depends on display orientation. + * We need to edit the coordinates to take into account those gaps, this is not necessary in all orientations. */ void st7789_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map) { uint8_t data[4] = {0};