Prechádzať zdrojové kódy

update:lcd默认清屏为黑色更合理一些,主要作用避免初始化后显示时有花屏

Dozingfiretruck 3 rokov pred
rodič
commit
8fa2682096

+ 1 - 1
components/lcd/luat_lcd_custom.c

@@ -41,7 +41,7 @@ static int custom_init(luat_lcd_conf_t* conf) {
     luat_lcd_wakeup(conf);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_gc9106l.c

@@ -89,7 +89,7 @@ static int gc9106l_init(luat_lcd_conf_t* conf) {
     lcd_write_cmd(conf,0x11);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_gc9306x.c

@@ -162,7 +162,7 @@ static int gc9306x_init(luat_lcd_conf_t* conf) {
     /* wait for power stability */
     luat_timer_mdelay(100);
     lcd_write_cmd(conf,0x2c);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     lcd_write_cmd(conf,0x2c);

+ 1 - 1
components/lcd/luat_lcd_gc9a01.c

@@ -258,7 +258,7 @@ static int gc9a01_init(luat_lcd_conf_t* conf) {
     luat_lcd_wakeup(conf);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_ili9341.c

@@ -137,7 +137,7 @@ static int ili9341_init(luat_lcd_conf_t* conf) {
     lcd_write_cmd(conf,0x11);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_ili9486.c

@@ -115,7 +115,7 @@ static int ili9486_init(luat_lcd_conf_t* conf) {
     lcd_write_cmd(conf,0x11);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_st7735.c

@@ -119,7 +119,7 @@ static int st7735_init(luat_lcd_conf_t* conf) {
     lcd_write_cmd(conf,0x11);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_st7735s.c

@@ -127,7 +127,7 @@ static int st7735s_init(luat_lcd_conf_t* conf) {
 	lcd_write_data(conf,conf->h+conf->yoffset-1);    //160
 	lcd_write_cmd(conf,0x2C);
 
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_st7735v.c

@@ -135,7 +135,7 @@ static int st7735v_init(luat_lcd_conf_t* conf) {
 
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_st7789.c

@@ -113,7 +113,7 @@ static int st7789_init(luat_lcd_conf_t* conf) {
     lcd_write_cmd(conf,0x11);
     /* wait for power stability */
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;

+ 1 - 1
components/lcd/luat_lcd_st7796.c

@@ -156,7 +156,7 @@ static int st7796_init(luat_lcd_conf_t* conf) {
     lcd_write_data(conf,0x69);
 
     luat_timer_mdelay(100);
-    luat_lcd_clear(conf,WHITE);
+    luat_lcd_clear(conf,BLACK);
     /* display on */
     luat_lcd_display_on(conf);
     return 0;