PersonalVotingMachine/extended-setup/components/drv/ili9341.h

50 lines
902 B
C
Raw Permalink Normal View History

2020-12-22 14:30:09 +02:00
/**
* @file lv_templ.h
*
*/
#ifndef ILI9341_H
#define ILI9341_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lvgl/lvgl.h"
/*********************
* DEFINES
*********************/
#define DISP_BUF_SIZE (LV_HOR_RES_MAX * 40)
#define ILI9341_DC CONFIG_OVC_PIN_DC
#define ILI9341_RST CONFIG_OVC_PIN_RESET
#define ILI9341_BCKL CONFIG_OVC_PIN_LITE
// if text/images are backwards, try setting this to 1
#define ILI9341_INVERT_DISPLAY 1
/**********************
* 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);
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*ILI9341_H*/