cardputer-buddy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCardputer Buddy app bundle
Cardputer Buddy应用包
The directory in the local clone is the MicroPython payload that installs onto . Work inside that clone.
buddy/build-with-claudem5-onboard/flash/本地克隆仓库中的目录是安装到的MicroPython payload。请在该克隆仓库内进行操作。
build-with-claudebuddy/m5-onboard/flash/Device layout
设备布局
/flash/
├── main.py launcher menu (replaces UIFlow's boot flow)
├── buddy_*.py shared libs (BLE, UI, state, protocol, chars)
├── burst_frames.py sprite frames
└── apps/
├── claude_buddy.py BLE client → Claude Desktop's Hardware Buddy
├── hello_cardputer.py
└── snake.pymain.py/flash/apps/.pybuddy/device/apps//flash/
├── main.py 启动器菜单(替代UIFlow的启动流程)
├── buddy_*.py 共享库(BLE、UI、状态、协议、chars)
├── burst_frames.py 精灵帧
└── apps/
├── claude_buddy.py BLE客户端 → Claude Desktop's Hardware Buddy
├── hello_cardputer.py
└── snake.pymain.py/flash/apps/.pybuddy/device/apps/Adding an app
添加应用
Crib from — smallest example of keyboard polling, font, and exit conventions. Then push without re-flashing:
buddy/device/apps/hello_cardputer.pybash
python3 onboard/scripts/install_apps.py --port <PORT> --src buddy<PORT>detect.py/dev/cu.usbmodem1101/dev/ttyACM0COM3参考——这是包含键盘轮询、字体和退出约定的最小示例。然后无需重新烧录即可推送:
buddy/device/apps/hello_cardputer.pybash
python3 onboard/scripts/install_apps.py --port <PORT> --src buddy<PORT>detect.py/dev/cu.usbmodem1101/dev/ttyACM0COM3Dev loop tooling (buddy/scripts/
)
buddy/scripts/开发循环工具(buddy/scripts/
)
buddy/scripts/bash
undefinedbash
undefinedPush a subset of files over USB-serial
通过USB串行推送部分文件
python3 buddy/scripts/push.py --port <PORT> --files apps/snake.py
python3 buddy/scripts/push.py --port <PORT> --files apps/snake.py
Watch device logs
查看设备日志
python3 buddy/scripts/tail_serial.py --port <PORT>
python3 buddy/scripts/tail_serial.py --port <PORT>
One-shot REPL exec
一次性REPL执行
python3 buddy/scripts/repl_run.py --port <PORT> --script "import os; print(os.listdir('/flash'))"
undefinedpython3 buddy/scripts/repl_run.py --port <PORT> --script "import os; print(os.listdir('/flash'))"
undefined