lvgl_esp32_drivers/lvgl_tft/pcd8544.h

54 lines
1 KiB
C
Raw Normal View History

2021-11-14 18:15:09 +00:00
/**
* @file pcd8544.h
*
*/
#ifndef PCD8544_H
#define PCD8544_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
2021-11-14 18:15:09 +00:00
#include <stdbool.h>
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/*********************
* DEFINES
*********************/
2021-11-14 18:15:09 +00:00
/**********************
* TYPEDEFS
**********************/
2021-11-14 18:15:09 +00:00
/**********************
* GLOBAL PROTOTYPES
**********************/
2021-11-14 18:15:09 +00:00
2022-01-12 00:14:57 +00:00
void pcd8544_init(lv_disp_drv_t *drv);
void pcd8544_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map);
void pcd8544_rounder(lv_disp_drv_t * disp_drv, lv_area_t *area);
void pcd8544_set_px_cb(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);
2022-01-12 00:14:57 +00:00
void pcd8544_set_contrast(lv_disp_drv_t *drv, uint8_t contrast);
2021-11-14 18:15:09 +00:00
/**********************
* MACROS
**********************/
2021-11-14 18:15:09 +00:00
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*PCD8544_H*/