Added support for ILI9225
Added support for ILI9225 display controller. Currently no support for hardware rotation is implemented and only the default portrait resolution 176x220 is supported.
This commit is contained in:
parent
26fe6e7703
commit
07ad6bf43e
8 changed files with 324 additions and 0 deletions
54
lvgl_tft/ili9225.h
Normal file
54
lvgl_tft/ili9225.h
Normal file
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* @file lv_templ.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ILI9225_H
|
||||
#define ILI9225_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
||||
#include "lvgl.h"
|
||||
#else
|
||||
#include "lvgl/lvgl.h"
|
||||
#endif
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
#define ILI9225_DC CONFIG_LV_DISP_PIN_DC
|
||||
#define ILI9225_USE_RST CONFIG_LV_DISP_USE_RST
|
||||
#define ILI9225_RST CONFIG_LV_DISP_PIN_RST
|
||||
#define ILI9225_INVERT_COLORS CONFIG_LV_INVERT_COLORS
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
|
||||
void ili9225_init(void);
|
||||
void ili9225_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /*ILI9225_H*/
|
Loading…
Add table
Add a link
Reference in a new issue