From 148ce09d97a46602f58791d67db37bfd0f20b751 Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Thu, 7 Jul 2022 19:56:30 -0700 Subject: [PATCH] Define EXAMPLE_LCD_H_RES & V_RES globally, not based on driver --- .../lcd/i80_controller/main/i80_controller_example_main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c b/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c index 8050939dc8..e3e1c156e2 100644 --- a/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c +++ b/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