Skip to content

Commit 26fe6e7

Browse files
arktrinC47D
authored andcommittedDec 23, 2021
clarify the 52/53 px offset oddity
1 parent c4cd524 commit 26fe6e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lvgl_tft/st7789.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ void st7789_init(void)
120120
st7789_set_orientation(CONFIG_LV_DISPLAY_ORIENTATION);
121121
}
122122

123-
/* The ST7789 display controller can drive up to 320*240 displays, when using a 240*240
124-
* or 240*135 displays there's a gap of 80px or 40/52/53px respectivly, we need to edit
125-
* the coordinates to take into account those gaps, this is not necessary in all orientations. */
123+
/* The ST7789 display controller can drive up to 320*240 displays, when using a 240*240 or 240*135
124+
* displays there's a gap of 80px or 40/52/53px respectively. 52px or 53x offset depends on display orientation.
125+
* We need to edit the coordinates to take into account those gaps, this is not necessary in all orientations. */
126126
void st7789_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map)
127127
{
128128
uint8_t data[4] = {0};

0 commit comments

Comments
 (0)
Failed to load comments.