Skip to content

Commit 8cceb5f

Browse files
committed
fix: Horizontal and vertical pixel errors
Signed-off-by: lbuque <1102390310@qq.com>
1 parent 089cf52 commit 8cceb5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lcd/hal/esp32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ void hal_lcd_rgb_construct(lcd_rgb_obj_t *self) {
8181
.clk_src = LCD_CLK_SRC_PLL160M,
8282
.timings = {
8383
.pclk_hz = self->pclk,
84-
.h_res = self->height,
85-
.v_res = self->width,
84+
.h_res = self->width,
85+
.v_res = self->height,
8686
// The following parameters should refer to LCD spec
8787
.hsync_pulse_width = self->timings.hsync_pulse_width,
8888
.hsync_back_porch = self->timings.hsync_back_porch,

0 commit comments

Comments
 (0)