✨ feat(sim/oled): 移除未使用的头文件 "graphics.h" 和 "conio.h"
✨ 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 组件
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <ctime>
|
||||
#include <cstdio>
|
||||
#include <syncstream>
|
||||
#include "sim_test.h"
|
||||
|
||||
void Test_RunTime(char *name, int (*pFunction)(void *)) {
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#include "sim_display.h"
|
||||
#include "graphics.h"
|
||||
#include <conio.h>
|
||||
|
||||
|
||||
#define GET_BIT(x, bit) ((x & (1 << bit)) >> bit)
|
||||
|
||||
@@ -20,6 +19,10 @@ uint32_t RGB565_to_ARGB8888(uint16_t rgb565, bool isBGR) {
|
||||
}
|
||||
}
|
||||
#ifndef USER_SDL3
|
||||
|
||||
#include "graphics.h"
|
||||
#include <conio.h>
|
||||
|
||||
static uint32_t pixelColor, backgroundColor;
|
||||
static int scaleFactor, w, h;
|
||||
uint8_t border;
|
||||
|
@@ -12,8 +12,6 @@
|
||||
*********************/
|
||||
#include "lv_port_indev.h"
|
||||
#include "lvgl.h"
|
||||
#include "graphics.h"
|
||||
#include <easyx.h>
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
@@ -253,8 +251,8 @@ static void mouse_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data)
|
||||
static bool mouse_is_pressed(void)
|
||||
{
|
||||
/*Your code comes here*/
|
||||
ExMessage msg;peekmessage(&msg, EM_MOUSE);
|
||||
if(msg.message==WM_LBUTTONDOWN) return true;
|
||||
// ExMessage msg;peekmessage(&msg, EM_MOUSE);
|
||||
// if(msg.message==WM_LBUTTONDOWN) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -262,13 +260,13 @@ static bool mouse_is_pressed(void)
|
||||
static void mouse_get_xy(lv_coord_t * x, lv_coord_t * y)
|
||||
{
|
||||
/*Your code comes here*/
|
||||
ExMessage msg;
|
||||
if(peekmessage(&msg, EM_MOUSE))
|
||||
{
|
||||
(*x) = msg.x;
|
||||
(*y) = msg.y;
|
||||
printf("\nX:%d,Y:%d",*x,*y);
|
||||
}
|
||||
// ExMessage msg;
|
||||
// if(peekmessage(&msg, EM_MOUSE))
|
||||
// {
|
||||
// (*x) = msg.x;
|
||||
// (*y) = msg.y;
|
||||
// printf("\nX:%d,Y:%d",*x,*y);
|
||||
// }
|
||||
}
|
||||
|
||||
/*------------------
|
||||
|
@@ -1,6 +1,4 @@
|
||||
#include "sim_oled.h"
|
||||
#include "graphics.h"
|
||||
#include <conio.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) {
|
||||
|
Reference in New Issue
Block a user