mirror of
https://gitee.com/lzc56/MiaoUI.git
synced 2025-08-12 12:22:53 +00:00
更新 README.md
This commit is contained in:
parent
98aebc876b
commit
691eb1e232
16
README.md
16
README.md
@ -10,12 +10,13 @@
|
||||
- 全局使用非线性动画(类PID控制器)
|
||||
在菜单数据结构上参考开源项目:https://github.com/morepray/MorepUI
|
||||
# 移植准备
|
||||
- 在menuConfig.h中配置你的屏幕分辨率与菜单字体。
|
||||
- 往dispDirver.c中替换你的屏幕驱动,亦可使用example中的移植的u8g2库。
|
||||
- 需在Menu_State BtnScan(void)函数中放入按键扫描程序。
|
||||
- 在新增菜单项时,应在menu.c中定义菜单所在页面(page)和菜单项(item),然后在Craete_MenuTree中通过AddPage、AddItem加入。
|
||||
- 建立一个xMenu类型的全局结构体
|
||||
- 最后将Menu_Init和Menu_Loop放入你的程序中。
|
||||
1. 在menuConfig.h中配置你的屏幕分辨率与菜单字体。
|
||||
2. 往dispDirver.c中替换你的屏幕驱动,亦可使用example中的移植的u8g2库。
|
||||
3. 在Menu_State BtnScan(void)函数中放入按键扫描程序。
|
||||
4. 在image.c中写入你需要显示的项目logo,否则图形界面的logo为预设logo。
|
||||
5. 在新增菜单项时,应在menu.c中定义菜单所在页面(page)和菜单项(item),然后在Craete_MenuTree中通过AddPage、AddItem加入。
|
||||
6. 建立一个xMenu类型的全局结构体
|
||||
7. 最后将Menu_Init和Menu_Loop放入你的程序中。
|
||||
# Example
|
||||
基于STM32F103C8T6,使用硬件I2C2驱动0.96寸OLED(SSD1306),按键为串口虚拟按键
|
||||
其中:
|
||||
@ -25,4 +26,5 @@
|
||||
# 效果如下
|
||||

|
||||

|
||||
- 视频演示地址:https://b23.tv/TOwmuKL
|
||||
- 视频演示地址:
|
||||
https://b23.tv/TOwmuKL
|
||||
|
Loading…
Reference in New Issue
Block a user