Calzone-UI/inc/lvgl_port/lvgl_fb_port.h

25 lines
418 B
C
Raw Normal View History

2024-02-21 01:11:59 +00:00
#pragma once
#include <stdint.h>
#include <lvgl.h>
#ifdef __cplusplus
extern "C" {
#endif
2024-02-21 01:11:59 +00:00
extern uint32_t disp_height;
extern uint32_t disp_width;
void fb_flush_cb(lv_display_t* display, const lv_area_t* area, uint8_t* px_map);
uint32_t disp_hpercent_to_px(uint32_t percent);
uint32_t disp_vpercent_to_px(uint32_t percent);
int lvgl_fb_run(const char* const fb_dev);
#ifdef __cplusplus
} // extern "C"
#endif