2020-12-17 06:02:55 +00:00
|
|
|
/**
|
|
|
|
* @file disp_driver.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DISP_DRIVER_H
|
|
|
|
#define DISP_DRIVER_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
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
|
|
|
|
|
|
|
|
#if defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9341
|
|
|
|
#include "ili9341.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9481
|
|
|
|
#include "ili9481.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9488
|
|
|
|
#include "ili9488.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7789
|
|
|
|
#include "st7789.h"
|
2020-12-24 19:52:44 +00:00
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7796S
|
|
|
|
#include "st7796s.h"
|
2020-12-17 06:02:55 +00:00
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7735S
|
|
|
|
#include "st7735s.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_HX8357
|
|
|
|
#include "hx8357.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9486
|
|
|
|
#include "ili9486.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_SH1107
|
|
|
|
#include "sh1107.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_SSD1306
|
|
|
|
#include "ssd1306.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_FT81X
|
|
|
|
#include "FT81x.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_IL3820
|
|
|
|
#include "il3820.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_RA8875
|
|
|
|
#include "ra8875.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_GC9A01
|
|
|
|
#include "GC9A01.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_JD79653A
|
|
|
|
#include "jd79653a.h"
|
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_UC8151D
|
|
|
|
#include "uc8151d.h"
|
2021-04-29 07:55:22 +00:00
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9163C
|
|
|
|
#include "ili9163c.h"
|
2021-11-14 18:15:09 +00:00
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_PCD8544
|
|
|
|
#include "pcd8544.h"
|
2023-12-30 02:47:03 +00:00
|
|
|
#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_SCHMITT
|
|
|
|
#include "schmitt.h"
|
2020-12-17 06:02:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
/* Initialize display */
|
2021-08-03 06:59:59 +00:00
|
|
|
void *disp_driver_init(void);
|
2020-12-17 06:02:55 +00:00
|
|
|
|
|
|
|
/* Display flush callback */
|
|
|
|
void disp_driver_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);
|
|
|
|
|
|
|
|
/* Display rounder callback, used with monochrome dispays */
|
|
|
|
void disp_driver_rounder(lv_disp_drv_t * disp_drv, lv_area_t * area);
|
|
|
|
|
|
|
|
/* Display set_px callback, used with monochrome dispays */
|
|
|
|
void disp_driver_set_px(lv_disp_drv_t * disp_drv, uint8_t * buf, lv_coord_t buf_w, lv_coord_t x, lv_coord_t y,
|
|
|
|
lv_color_t color, lv_opa_t opa);
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* MACROS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*DISP_DRIVER_H*/
|