clarify the 52/53 px offset oddity
This commit is contained in:
parent
c4cd524487
commit
26fe6e7703
|
@ -120,9 +120,9 @@ void st7789_init(void)
|
||||||
st7789_set_orientation(CONFIG_LV_DISPLAY_ORIENTATION);
|
st7789_set_orientation(CONFIG_LV_DISPLAY_ORIENTATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The ST7789 display controller can drive up to 320*240 displays, when using a 240*240
|
/* The ST7789 display controller can drive up to 320*240 displays, when using a 240*240 or 240*135
|
||||||
* or 240*135 displays there's a gap of 80px or 40/52/53px respectivly, we need to edit
|
* displays there's a gap of 80px or 40/52/53px respectively. 52px or 53x offset depends on display orientation.
|
||||||
* the coordinates to take into account those gaps, this is not necessary in all orientations. */
|
* 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)
|
void st7789_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map)
|
||||||
{
|
{
|
||||||
uint8_t data[4] = {0};
|
uint8_t data[4] = {0};
|
||||||
|
|
Loading…
Reference in a new issue