2021-09-09 04:02:47 +00:00
|
|
|
#ifndef DISPLAY_CONFIG_H_
|
|
|
|
#define DISPLAY_CONFIG_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
|
|
|
/* Configuration options for ST7789 display controllers */
|
|
|
|
#if CONFIG_LV_DISP_USE_RST
|
|
|
|
#if CONFIG_LV_DISP_ST7789_SOFT_RESET
|
|
|
|
#define ST7789_SOFT_RST
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define ST7789_SOFT_RST
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (CONFIG_LV_INVERT_COLORS)
|
|
|
|
#define ST7789_INVERT_COLORS 1U
|
2021-10-05 05:03:02 +00:00
|
|
|
#define ILI9341_INVERT_COLORS 1U
|
2021-09-09 04:02:47 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ST7789_INITIAL_ORIENTATION CONFIG_LV_DISPLAY_ORIENTATION
|
|
|
|
|
2021-10-05 05:03:02 +00:00
|
|
|
#if CONFIG_LV_DISP_USE_RST
|
|
|
|
#define ILI9341_USE_RST
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ILI9341_INITIAL_ORIENTATION CONFIG_LV_DISPLAY_ORIENTATION
|
|
|
|
|
2021-11-18 03:00:07 +00:00
|
|
|
/* ILI9488 Configuration */
|
|
|
|
#if CONFIG_LV_DISP_USE_RST
|
|
|
|
#define ILI9488_USE_RST
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define ILI9488_INITIAL_ORIENTATION CONFIG_LV_DISPLAY_ORIENTATION
|
|
|
|
|
2021-09-09 04:02:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* DISPLAY_CONFIG_H_ */
|