Jelajahi Sumber

update:lcd LUAT_LCD_CONF_COUNT

Dozingfiretruck 1 tahun lalu
induk
melakukan
8a238c573b
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 1 2
      components/lcd/luat_lcd.c
  2. 2 0
      components/lcd/luat_lcd.h

+ 1 - 2
components/lcd/luat_lcd.c

@@ -10,8 +10,7 @@
 
 luat_color_t BACK_COLOR = LCD_WHITE, FORE_COLOR = LCD_BLACK;
 
-#define LUAT_LCD_CONF_COUNT (1)
-static luat_lcd_conf_t* confs[LUAT_LCD_CONF_COUNT] = {0};
+luat_lcd_conf_t* confs[LUAT_LCD_CONF_COUNT] = {0};
 
 void luat_lcd_execute_cmds(luat_lcd_conf_t* conf) {
     uint16_t cmd = 0,cmd_len = 0;

+ 2 - 0
components/lcd/luat_lcd.h

@@ -6,6 +6,8 @@
 #include "luat_spi.h"
 #include "u8g2.h"
 
+#define LUAT_LCD_CONF_COUNT (1)
+
 #define LCD_W 240
 #define LCD_H 320
 #define LCD_DIRECTION 0