Calzone-UI/inc/lvgl_port/lvgl_fb_port.h

17 lines
335 B
C
Raw Normal View History

2024-02-21 01:11:59 +00:00
#pragma once
#include <stdint.h>
#include <lvgl.h>
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);