Define EXAMPLE_LCD_H_RES & V_RES globally, not based on driver
This commit is contained in:
parent
8cd0284284
commit
148ce09d97
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue