소스 검색

Define EXAMPLE_LCD_H_RES & V_RES globally, not based on driver

Phillip Burgess 3 년 전
부모
커밋
148ce09d97
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c

+ 2 - 6
examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c

@@ -55,20 +55,16 @@ static const char *TAG = "example";
 #define EXAMPLE_PIN_NUM_BK_LIGHT       1
 
 // The pixel number in horizontal and vertical
-// Bit number used to represent command and parameter
-#if CONFIG_EXAMPLE_LCD_I80_CONTROLLER_ST7789
 #define EXAMPLE_LCD_H_RES              240
 #define EXAMPLE_LCD_V_RES              280
+// Bit number used to represent command and parameter
+#if CONFIG_EXAMPLE_LCD_I80_CONTROLLER_ST7789
 #define EXAMPLE_LCD_CMD_BITS           8
 #define EXAMPLE_LCD_PARAM_BITS         8
 #elif CONFIG_EXAMPLE_LCD_I80_CONTROLLER_NT35510
-#define EXAMPLE_LCD_H_RES              240
-#define EXAMPLE_LCD_V_RES              280
 #define EXAMPLE_LCD_CMD_BITS           16
 #define EXAMPLE_LCD_PARAM_BITS         16
 #elif CONFIG_EXAMPLE_LCD_I80_CONTROLLER_ILI9341
-#define EXAMPLE_LCD_H_RES              320
-#define EXAMPLE_LCD_V_RES              240
 #define EXAMPLE_LCD_CMD_BITS           8
 #define EXAMPLE_LCD_PARAM_BITS         8
 #endif