From 4433800f5207cf1c0a827ca4d48fba0d9be0b570 Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Wed, 17 Apr 2024 16:08:35 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=9D=A1=E7=9C=A0=E5=94=A4?= =?utf8?q?=E9=86=92lcd=E8=83=8C=E5=85=89=E4=BC=9A=E8=A2=AB=E4=BF=AE?= =?utf8?q?=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/lcd/lcd_config.c | 2 +- code/sdk/drivers/peripheral/lcd/soc_lcd_api.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sdk/drivers/peripheral/lcd/lcd_config.c b/code/sdk/drivers/peripheral/lcd/lcd_config.c index 1687a7a1f..9d396961c 100644 --- a/code/sdk/drivers/peripheral/lcd/lcd_config.c +++ b/code/sdk/drivers/peripheral/lcd/lcd_config.c @@ -142,7 +142,7 @@ const lcd_cmd_sequ g_edo_466x466_screen_init_on[] = { {1, 2, {0x3a, 0x77}, 0}, {1, 2, {0x35, 0x00}, 0}, {1, 2, {0x53, 0x20}, 0}, - {1, 2, {0x51, 0xff}, 0}, + // {1, 2, {0x51, 0xff}, 0}, {1, 2, {0x63, 0xff}, 0}, {1, 5, {0x2A, 0x00, 0x06, 0x01, 0xd7}, 0}, {1, 5, {0x2B, 0x00, 0x00, 0x01, 0xd1}, 0}, diff --git a/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c b/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c index 8761d3f46..63f223555 100644 --- a/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c +++ b/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c @@ -173,7 +173,8 @@ static ext_errno lcd_get_ops(void) } } - g_lcd_info.brightness = DEFAULT_BRIGHTNESS; + if (g_lcd_info.brightness == 0) + g_lcd_info.brightness = DEFAULT_BRIGHTNESS; return EXT_ERR_SUCCESS; fail: -- 2.17.1