mirror of
https://github.com/Valeh2012/PersonalVotingMachine
synced 2024-11-23 17:50:58 +02:00
50 lines
902 B
C
50 lines
902 B
C
|
/**
|
||
|
* @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*/
|