ST7789: Move configuration to display_config.h

This commit is contained in:
C47D 2021-09-08 23:02:47 -05:00
parent d79b68bdf6
commit 2a3157b8fc
2 changed files with 33 additions and 12 deletions

View file

@ -17,19 +17,11 @@ extern "C"
#else
#include "lvgl/lvgl.h"
#endif
#include "../lvgl_helpers.h"
#include "sdkconfig.h"
#if CONFIG_LV_DISP_USE_RST
#if CONFIG_LV_DISP_ST7789_SOFT_RESET
#define ST7789_SOFT_RST
#endif
#else
#define ST7789_SOFT_RST
#endif
#define ST7789_INVERT_COLORS CONFIG_LV_INVERT_COLORS
/* For SPI transfers */
#include "lvgl_helpers.h"
/* For ST7789 particular configurations */
#include "display_config.h"
/* ST7789 commands */
#define ST7789_NOP 0x00