2024-02-21 01:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include <lvgl.h>
|
|
|
|
|
|
|
|
|
2024-02-21 05:01:03 +00:00
|
|
|
#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);
|
|
|
|
|
2024-02-21 05:01:03 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|