2020-12-17 06:02:55 +00:00
|
|
|
/**
|
|
|
|
* @file lv_templ.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ILI9341_H
|
|
|
|
#define ILI9341_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2020-12-21 17:10:35 +00:00
|
|
|
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
2020-12-17 06:02:55 +00:00
|
|
|
#include "lvgl.h"
|
|
|
|
#else
|
|
|
|
#include "lvgl/lvgl.h"
|
|
|
|
#endif
|
2021-07-08 09:04:07 +00:00
|
|
|
|
|
|
|
#include "sdkconfig.h"
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
2021-04-28 09:04:53 +00:00
|
|
|
#define ILI9341_DC CONFIG_LV_DISP_PIN_DC
|
|
|
|
#define ILI9341_USE_RST CONFIG_LV_DISP_USE_RST
|
|
|
|
#define ILI9341_RST CONFIG_LV_DISP_PIN_RST
|
2020-12-17 06:02:55 +00:00
|
|
|
#define ILI9341_INVERT_COLORS CONFIG_LV_INVERT_COLORS
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
void ili9341_init(void);
|
|
|
|
void ili9341_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);
|
|
|
|
void ili9341_sleep_in(void);
|
|
|
|
void ili9341_sleep_out(void);
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* MACROS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*ILI9341_H*/
|