Boen_Shi 8be2866433 feat(base): 初始化 MSPM0 开发环境
- 添加头文件和配置文件支持
- 更新.gitignore忽略编译和IDE相关文件
- 添加基础的bsp代码
2026-07-16 14:45:26 +08:00

42 lines
1.4 KiB
C++

#ifndef OLEDMENUCONFIG_H
#define OLEDMENUCONFIG_H
#include "../../include/user/OledMenuPaint.h"
#define _ 0
// const MenuPaint::Menu menuInfo[] = {
// { "Status:Normal", MenuPaint::MENU_TYPE_INFO, nullptr, 0, 0 },
// { "Vol:3.3V", MenuPaint::MENU_TYPE_INFO, nullptr, 0, 0 },
// { "Temp:25C", MenuPaint::MENU_TYPE_INFO, nullptr, 0, 0 },
// { "Version:v1.0.2", MenuPaint::MENU_TYPE_INFO, nullptr, 0, 0 },
// { "Name: Boen", MenuPaint::MENU_TYPE_INFO, nullptr, 0, 0 }
// };
// const MenuPaint::Menu menuSystem[] = {
// { "FuncA", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 0 }, // switchId = 0
// { "FuncB", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 1 }, // switchId = 1
// };
//
// const MenuPaint::Menu menuRoot[] = {
// { "Settings", MenuPaint::MENU_TYPE_FOLDER, menuSystem, 2, 0 },
// { "Infos", MenuPaint::MENU_TYPE_FOLDER, menuInfo, 5, 0 }
// };
constexpr MenuPaint::Menu task1Menu[] = {
{"N=1", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 0},
{"N=2", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 1},
{"N=3", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 2},
{"N=4", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 3},
{"N=5", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 4},
};
constexpr MenuPaint::Menu menuRoot[] {
{"Num", MenuPaint::MENU_TYPE_FOLDER, task1Menu, 5, 0},
{"HighSpeed", MenuPaint::MENU_TYPE_SWITCH, nullptr, 0, 5},
};
#endif // OLEDMENUCONFIG_H