lvgl_esp32_drivers/lvgl_tft/sharp_mip.h

36 lines
835 B
C
Raw Normal View History

2023-08-24 10:45:30 +00:00
/**
* Display class for generic e-Paper driven by EPDiy class
*/
#pragma once
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "sdkconfig.h"
/* Configure your display */
void sharp_init(void);
/* LVGL callbacks */
void sharp_flush(lv_disp_drv_t *drv, lv_area_t *area, lv_color_t *color_map);
/* Only for monochrome displays. But we use epdiy_set_px also for epapers */
//void epdiy_rounder(lv_disp_drv_t *disp_drv, lv_area_t *area);
void sharp_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);
void sharp_rounder(lv_disp_drv_t * disp_drv, lv_area_t * area);
#ifdef __cplusplus
} /* extern "C" */
#endif