✨ feat(lib/CMakeLists.txt): 添加 LUI 库支持 ✨ feat(lib/utils/inc/argpase.h): 引入 "stdbool.h" 以支持布尔类型 ✨ feat(sim/display/sim_display.cpp): 重新引入 "graphics.h" 和 "conio.h" 以修复依赖 ✨ feat(sim/lvgl/lv_port_indev.cpp): 移除未使用的头文件 "graphics.h" 和 "easyx.h" ✨ feat(main.c): 添加 LUI 库支持以增强功能 ✨ feat(lib/lui/lame_ui.c): 新增 LUI 库实现以支持 UI 组件
16 lines
464 B
C++
16 lines
464 B
C++
#include "sim_oled.h"
|
|
|
|
static SIM_Display_t oled_display;
|
|
void SIM_OLED_INIT(int width, int height, uint32_t pixcolor, uint32_t backcolor, int scale, uint8_t b) {
|
|
SIM_Display_Init("OLED", width, height, pixcolor, backcolor, scale, &oled_display);
|
|
}
|
|
|
|
|
|
void SIM_OLED_STOP() {
|
|
SIM_Display_STOP(&oled_display);
|
|
}
|
|
|
|
void SIM_OLED_DrawFromBuffer(uint8_t *buf, uint8_t width, uint8_t height) {
|
|
SIM_OneColor_DrawFromBuffer(&oled_display, buf, width, height);
|
|
}
|