From acf2616a20372ec527791a3c2e0a782556ad5792 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 23 Aug 2024 19:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=99=BD=E7=BA=BF=E9=97=AE?= =?UTF-8?q?=E9=A2=98=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 b051faf..ae0bc81 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 和 xe 偏移改成 0x24 试试 + xs += 0x23; // 如果显示有偏移,将 xs 或 xe 偏移改成 0x24 试试 xe += 0x23; ys += 0x00; ye += 0x00; @@ -247,7 +247,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, default: xs += 0x00; xe += 0x00; - ys += 0x24; + ys += 0x23; ye += 0x24; break; } @@ -262,7 +262,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, static struct fbtft_display display = { .regwidth = 8, - .width = 170, + .width = 171, .height = 320, .gamma_num = 2, .gamma_len = 14,