WouoUI/Third-party-design/Emulator
2023-07-07 09:56:30 +08:00
..
Arduino PC Emulator 2023-07-06 23:40:07 +08:00
u8g2@20692fb90d PC Emulator 2023-07-06 23:40:07 +08:00
.gitignore PC Emulator 2023-07-06 23:40:07 +08:00
CMakeLists.txt bug fix 2023-07-07 09:10:07 +08:00
main.cpp PC Emulator 2023-07-06 23:40:07 +08:00
README.md bug fix 2023-07-07 09:10:07 +08:00
WouoFix.cpp linux build fix 2023-07-07 09:56:30 +08:00
WouoFix.h PC Emulator 2023-07-06 23:40:07 +08:00

作者

Legend

说明

基于SDL2,移植u8g2,添加Arduino兼容层,模拟必要的Arduino API,模拟编码、按键长短按时序,使WouoUI在能在PC平台编译运。

键盘QWER分别代表编码器左、右旋转,短按,长按。(注意把电脑输入法关了)

EEPROM,ADC,HID无实际功能。

Windows编译

  1. 装好 msys2 环境
  2. (可选)使用 msys2-mingw64 执行sed -i "s#mirror.msys2.org/#mirrors.ustc.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*切换国内源
  3. 使用 msys2-mingw64 执行pacman -S mingw-w64-x86_64-SDL2安装SDL2
  4. 使用 msys2-mingw64 执行pacman -S mingw-w64-x86_64-toolchain cmake make ninja git,安装编译器等
  5. git clone --recurse-submodules https://github.com/RQNG/WouoUI.git
  6. cd WouoUI/Third-party-design/Emulator && cmake -G Ninja -B build
  7. cd build && ninja
  8. ./WouoUI.exe