MB

moremas/build-with-claude

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

216 stars 质量 60 趋势 0Apache-2.0

莫雷马斯/与克劳德构建是从https://github.com/moremas/build-with-claude.导入的特工技能候选人。

概览

莫雷马斯/与克劳德构建是从https://github.com/moremas/build-with-claude.导入的特工技能候选人。

概述(AI 翻译)

刷入Cardputer-Adv,用一个命令安装Claude Buddy应用。

快速开始

  1. 本地克隆该仓库——任何地方都可以:

技能会自动根据其自身安装位置检测伙伴包,因此克隆路径无关紧要。~/Downloads/m5stack/和~/Desktop/m5stack/也被作为常规备选。 2. 通过USB-C将Cardputer连接到你的笔记本电脑 3. 打开Claude代码并开始新聊天 4. 将Claude代码指向仓库文件夹 5. 类型 m5-onboard go

仅此而已——Claude会自动刷入固件并将应用推送到设备上。

当克劳德提示你将设备进入下载模式时

进行到一半时,Claude会暂停,让你在设备背面做以下操作:

  1. 按住Cardputer上的G0按钮
  2. 按住G0时,按下重置按钮
  3. 先释放重置,然后释放G0
  4. 屏幕变黑——设备处于下载模式

克劳德接手了。

接下来会发生什么

  • 固件写入设备(~180秒)
  • 应用推送到设备(~100秒)
  • 设备重启直接进入启动器 — 选择一个应用然后开始

完成了。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

m5stack

Flash a Cardputer-Adv and install the Claude Buddy apps in one command.

Quick start

  1. Clone this repo locally — anywhere is fine:
    git clone 
    
    The skill auto-detects the buddy bundle relative to its own install location, so the clone path doesn’t matter. ~/Downloads/m5stack/ and ~/Desktop/m5stack/ are also checked as conventional fallbacks.
  2. Plug the Cardputer into your laptop via USB-C
  3. Open Claude Code and start a new chat
  4. Point Claude Code to the repo folder
  5. Type m5-onboard go

That’s it — Claude will automatically flash the firmware and push the apps onto the device.

When Claude prompts you to put the device into download mode

Halfway through, Claude will pause and ask you to do this on the back of the device:

  1. Hold down the G0 button on the Cardputer
  2. While still holding G0, press the Reset button
  3. Release Reset first, then release G0
  4. The screen goes dark — device is in download mode

Claude takes over from there.

What happens next

  • Firmware writes to the device (~180 seconds)
  • Apps push to the device (~100 seconds)
  • Device reboots straight into the launcher — pick an app and go

Done. Power the device on/off with the side switch.


Using Claude Buddy (BLE)

  1. Power on the Cardputer
  2. Pick Claude Buddy from the launcher menu
  3. In Claude Desktop: Help → Troubleshooting → Enable Developer Tools (one-time, persists)
  4. Then Developer menu → Hardware Buddy → Connect

Event WiFi

The bundled launcher auto-connects to the event WiFi (cardputer / cardconnect) on every boot and displays the result on screen — Connected · IP: 192.168.x.x on success, WiFi: offline on failure (the launcher always continues either way). The credentials are intentionally checked into buddy/device/wifi_event.py; the AP is publicly broadcast at the venue and the password is the published handout, so this is not a leaked secret. To use this bundle outside the event, edit wifi_event.py (replace SSID/PASSWORD) or remove the _connect_wifi_with_splash() call near the top of main() to disable the auto-connect entirely.

Adding your own app

  1. Drop a .py file into buddy/device/apps/
  2. Push just the apps without re-flashing:
    python3 .claude/skills/m5-onboard/scripts/install_apps.py --port  --src buddy
    
  3. The launcher auto-discovers the new app on next boot

Crib from buddy/device/apps/hello_cardputer.py — it’s the smallest example of the conventions (keyboard polling, font, exit behaviour).

Getting back to stock UIFlow

The buddy bundle takes over the boot flow via /flash/main.py. Remove that file and UIFlow’s stock launcher boots normally on the next reset. From the device REPL:

import os
os.remove('/flash/main.py')
import machine; machine.reset()

To also drop the apps under /flash/apps/, walk that directory the

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add moremas/build-with-claude
新手?先看 mcpskill.org 教程 →