修复睡眠唤醒lcd背光会被修改的问题 31/1 31/head
authorSnickerSun <snickersun@163.com>
Wed, 17 Apr 2024 08:08:35 +0000 (16:08 +0800)
committerSnickerSun <snickersun@163.com>
Wed, 17 Apr 2024 08:08:35 +0000 (16:08 +0800)
code/sdk/drivers/peripheral/lcd/lcd_config.c
code/sdk/drivers/peripheral/lcd/soc_lcd_api.c

index 1687a7a..9d39696 100644 (file)
@@ -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}, 
index 8761d3f..63f2235 100644 (file)
@@ -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: