From 324bc1aedf30841c2cf0f8daec7faa0e096dff28 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 23 Aug 2024 17:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=81=8F=E7=A7=BB=E9=87=8F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../1.9inch_LCD_Module_fbtft_驱动_for_RK356x.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Hardware/Component/Screen/SPI/Waveshare/1.9inch_LCD_Module/1.9inch_LCD_Module_fbtft_驱动_for_RK356x.md b/Hardware/Component/Screen/SPI/Waveshare/1.9inch_LCD_Module/1.9inch_LCD_Module_fbtft_驱动_for_RK356x.md index 0407d95..b051faf 100644 --- a/Hardware/Component/Screen/SPI/Waveshare/1.9inch_LCD_Module/1.9inch_LCD_Module_fbtft_驱动_for_RK356x.md +++ b/Hardware/Component/Screen/SPI/Waveshare/1.9inch_LCD_Module/1.9inch_LCD_Module_fbtft_驱动_for_RK356x.md @@ -239,7 +239,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, { switch (par->info->var.rotate) { case 0: - xs += 0x23; + xs += 0x23; // 如果显示有偏移,将 xs 和 xe 偏移改成 0x24 试试 xe += 0x23; ys += 0x00; ye += 0x00; @@ -247,8 +247,8 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, default: xs += 0x00; xe += 0x00; - ys += 0x23; - ye += 0x23; + ys += 0x24; + ye += 0x24; break; } write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,