muse-gadget-sdk README

项目的 README,来自 github.com/facebookincubator/muse-gadget-sdk。合并为一个 markdown 文件:README.md。

Muse Gadgets

Muse gadgets: a Waveshare round AMOLED, an M5Stack StickS3, Muse Home Link, a Raspberry Pi and a Seeed reTerminal e-ink display

Muse gadgets are open source devices you build yourself. Program an off-the-shelf ESP32 board or set up a Raspberry Pi with our device SDKs, then connect Muse to your displays, buttons, sensors, actuators, and whatever else you've got lying on your workbench.

We open sourced the SDKs and firmware here. It's built by hackers, for hackers, just for fun. Side effects of tinkering may include bricked boards, voided warranties, brownouts, or bankruptcies. Proceed at your own risk!

ESP32 Device SDK Connect your ESP32 board to Muse through our open source SDK. Throw in a screen to show images, add audio in and out, or wire up other sensors.
Linux Device SDK Turn that spare Raspberry Pi or Linux box into a Muse gadget. Hack in your own commands to let Muse handle sysadmin chores or your Home Assistant setup.
Zephyr Device SDK A push-to-talk Bluetooth gadget for the Seeed XIAO nRF54L15 Sense: hold the button and talk to Muse, even offline. Built for that board; other Zephyr boards with a button and a microphone need a port.
Muse Gadgets Test (iPhone) Stream your phone's camera, or a clip, to an ESP32 gadget's screen over Wi-Fi: H.264 or VP8 decoded on the board, 30 fps on the round 466 px boards. protocols/VIDEO.md explains how.

Before you flash or pair a gadget, get an SDK token and review the Gadget SDK Terms. Every gadget needs a token to pair.

To install supported prebuilt ESP32 firmware without setting up ESP-IDF, use the Muse Gadget Web Flasher in Chrome or Edge on a desktop computer.

ESP32 and Linux gadgets pair with the Muse app on iOS and Android, via Settings > Devices. Turn on Developer mode there first, then look for devices prefixed with "MuseGadget".

The Zephyr gadget, and ESP32 boards with musegadgets BLE audio turned on, talk to the Muse app over the BLE protocol in protocols/. Each SDK directory has a README.md to get started and an AGENTS.md for coding agents like Muse Code. protocols/DEVICE.md says how a gadget describes itself to Muse, and protocols/ERROR_REPORT.md what it tells Muse after a crash.

For battery-input power profiling, see the porting recipe. The opt-in diagnostic core is board-neutral; boards supply its hooks and state matrices, and power_sweep.py drives the USB-free sweep. The isolated diagnostic does not pair or need an SDK token; fixture safety and explicit hardware authorization still come first, as the PPK2 rules describe.

Community

Meet other hackers who are building and customizing Muse gadgets in our community Discord. Get inspired, support each other, and share what you make.

License

Muse Gadgets is licensed under the Apache License, Version 2.0, found in LICENSE, except for these third-party files, which keep their upstream licenses:

Path Upstream License
esp32/components/minimp3/include/minimp3.h lieff/minimp3 CC0-1.0, see LICENSE
esp32/components/muse/muse_icons_gen.h Material Icons (the Muse Gadgets standard icons) Apache-2.0
esp32/components/muse/boards/ostb_echoear_display_init.h 78/xiaozhi-esp32 ESP-VoCat panel sequence MIT, retained in the file header
ST7789 tuning table in board_atk_dnesp32s3_box2.c 78/xiaozhi-esp32 ATK-DNESP32S3-BOX2 board MIT, see xiaozhi-esp32.txt
ST77916 initialization sequence in waveshare_s3_185c/st77916_init_185c.h 78/xiaozhi-esp32 Waveshare ESP32-S3-Touch-LCD-1.85C board MIT, see xiaozhi-esp32.txt
JD9853A initialization sequence in board_seeed_xiao_s3_147.c Seeed-Studio/Seeed_GFX2 MIT, see Seeed_GFX2.txt
GC9107 initialization sequence in board_m5stack_atoms3.c M5Stack M5GFX Panel_GC9107, from LovyanGFX FreeBSD, see LovyanGFX.txt
AXS15231B initialization sequence in board_guition_jc3248w535.c moononournation/Arduino_GFX 1.4.9's axs15231b_init_operations BSD-2-Clause, see Arduino_GFX.txt
esp32/components/esp_lcd_gc9107 Espressif's espressif/esp_lcd_gc9107 2.0.0 from the ESP Component Registry, changed to build on ESP-IDF 6 Apache-2.0, Espressif's copyright, see license.txt
esp32/components/muse/boards/viewe_smartring_display_init.h VIEWESMART/smartring_plus panel sequence Apache-2.0 under VIEWE's copyright, in the file header
esp32/components/muse/boards/waveshare_s3_185b_init.h waveshareteam/ESP32-S3-Touch-LCD-1.85B panel sequences Apache-2.0, in the file header
CO5300 initialization sequence in board_esp_mosaico.c esp-mosaico/esp-mosaico-bsp vendor init Apache-2.0, Espressif's copyright, noted in the file header
ExecuTorch runtime with its ESP-NN delegate, for the opt-in wake word (registry component, not vendored; see docs/executorch.md) pytorch/executorch, with espressif/esp-nn BSD-3-Clause AND Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND NCSA AND MIT, see the component's LICENSE; bundled third-party notices in the component. esp-nn: Apache-2.0
TensorFlow Lite Micro's microfrontend, for the opt-in wake word (registry component, not vendored) esphome/esp-micro-speech-features Apache-2.0 (TensorFlow Authors, Kevin Ahrendt); its kissfft files BSD-3-Clause (Mark Borgerding)
esp32/components/muse_wakeword/models/hey_muse.pte Trained for this SDK on public-domain, CC0 and CC BY data Training data credits, as CC BY requires, in ATTRIBUTION.md
esp32/main/pixel_font.c Adafruit GFX glcdfont.c BSD-2-Clause, in the file header
esp32/components/muse/fonts/ GNU Unifont 16.0.04, Noto Sans SC, Montserrat Medium via LVGL, and Montserrat SemiBold, subsets (see its README) SIL Open Font License 1.1 (Unifont also GPL-2.0+ with the font embedding exception)
card_font.h Montserrat Regular, subset for the OLIGHKER status screen SIL Open Font License 1.1, see montserrat-ofl.txt
epd420_cjk.bin Noto Sans SC, subset for the OLIGHKER status screen SIL Open Font License 1.1, see LICENSE-noto-sans-sc.txt
esp32/components/muse/fonts/muse_font_emoji_16.c Twemoji v16.0.1 graphics, 190 of them scaled to 16 px (see README.md) CC-BY 4.0, see LICENSE-twemoji.txt
esp32/main/fonts/epaper_154g_caption_font.h GNU Unifont 16.0.04, subset (see README.md) SIL Open Font License 1.1, or GPL-2.0+ with the font embedding exception
esp32/components/muse/eink/fonts/montserrat.ttf Montserrat Medium, via LVGL v9.5.0 SIL Open Font License 1.1
esp32/components/muse/eink/fonts/unscii.ttf unscii-8 Public domain
esp32/components/muse/eink/fonts/symbols.ttf Font Awesome 5 Free, via LVGL v9.5.0 SIL Open Font License 1.1 (icons CC BY 4.0)
esp32/main/epd_ssd1677.c Seeed-reTerminal-E10xx-Firmware's SSD1677 refresh sequence MIT, retained in the file header
esp32/main/uc8179_gray4_lut.h Seeed_GFX2's UC8179 four-gray waveforms MIT, retained in the file header
esp32/main/epd_it8951.c Seeed_GFX2's IT8951 command framing and ED103TC2 one-bit and four-bit modes MIT, retained in the file header
SSD1681 initialization sequence and waveform LUT in esp32/main/epd_ssd1681.c waveshareteam/ESP32-S3-ePaper-1.54's XiaoZhi V2 source, 78/xiaozhi-esp32 with Waveshare's board MIT, see xiaozhi-esp32.txt
xplat/tinyh264/src (built by esp32/components/tinyh264) the Android Open Source Project's H.264 decoder, via udevbe/tinyh264 Apache-2.0, AOSP's copyright, see LICENSE
xplat/libvpx_vp8/src (built by esp32/components/libvpx_vp8) libvpx v1.16.0's VP8 decoder, trimmed BSD-3-Clause, the WebM Project authors' copyright, see LICENSE, with Google's patent grant in PATENTS
libwebp v1.6.0's WebP decoder, for the opt-in avatar sync (fetched at build time from a pinned archive, not vendored; see avatar_webp.cmake) webmproject/libwebp BSD-3-Clause, Google's copyright, with Google's patent grant, see libwebp.txt
esp32/tests/vectors/esp_lvgl_adapter/pause_0.6.4.c esp_lv_adapter_pause() from espressif/esp_lvgl_adapter 0.6.4, a test input for its pause fix Apache-2.0, Espressif's copyright, as its header says
esp32/tests/vectors/h264/regress/ tinyh264 regression corpus: frames of an x264 encode of Big Buck Bunny, (c) 2008 Blender Foundation CC BY 3.0, credited in its README.md
zephyr/src/zephyr/smp.c Zephyr v4.4.2 subsys/mgmt/mcumgr/transport/src/smp.c, with three changes marked in the file Apache-2.0, Runtime.io's and Nordic Semiconductor's copyright, in the file header
xplat/libsbc (built by esp32/components/libsbc; the ESP32 and Zephyr gadgets use it) google/libsbc Apache-2.0, Google's copyright, see LICENSE
xplat/liblc3 (built by esp32/components/liblc3; the ESP32 and Zephyr gadgets use it) google/liblc3 Apache-2.0, Google's copyright, see LICENSE
xplat/lc3fx (built by esp32/components/liblc3 for chips without an FPU; for the same BLE gadgets) fixed-point port of google/liblc3 (the Muse Gadgets copy, see VENDORED.md) Apache-2.0, a derivative of liblc3, see LICENSE
android/lc3-kotlin Kotlin translation of google/liblc3 v1.1.3+5 (8e1e722c) Apache-2.0, a derivative of liblc3 (Google's copyright), see LICENSE and NOTICE
Gradle wrapper in android/lc3-kotlin (gradlew, gradlew.bat, gradle/wrapper/gradle-wrapper.jar) Gradle 8.13; gradle-wrapper.jar SHA-256 81a82aaea5abcc8ff68b3dfcb58b3c3c429378efd98e7433460610fecd7ae45f, Gradle's published checksum, and the wrapper checks the distribution's (distributionSha256Sum) Apache-2.0, the Gradle authors' copyright, in the script headers
portable/mg_link_setup/third_party/micro-ecc kmackay/micro-ecc at 541b3a78, P-256 files only (see its README) BSD-2-Clause, Kenneth MacKay's copyright, see LICENSE.txt

Dependencies fetched at build time are under their own licenses: ESP-IDF components (into esp32/managed_components/), and the simulator's LVGL and SDL (listed in esp32/simulator/THIRD_PARTY.md).

The Apache License does not cover the Jollybot avatar.

Muse Gadgets Test's sample clips aren't in this repository: the app fetches a few seconds of the Blender Foundation's open movies (CC BY 3.0) when one is played, and shows their credits.

Muse Gadgets Test can use x264 (GPL-2.0) on the phone; this repository carries none of its code. An APK or iPhone app you build with it is under the GPL (android/musegadgetstest/README.md, ios/musegadgetstest/README.md).

muse-gadget-sdk (facebookincubator/muse-gadget-sdk)

正在搜索数据库…

这是什么?这是一个用于打造「Muse 小工具」的开源 SDK 和固件——基于 ESP32 开发板或树莓派/Linux 主机的 DIY 设备,可连接 Muse 应用来驱动显示屏、音频、按钮、传感器和执行器。
这是一个统一的 SDK,还是分开的工具包?它是两套独立的设备 SDK 加固件——一套面向 ESP32 开发板,一套面向 Linux/树莓派主机——而不是单一统一框架。
我怎么让一个小工具跑起来?获取 SDK token 并阅读 Gadget SDK 条款,然后按照 esp32/ 或 linux/ 目录中针对你目标设备的 README.md 操作,烧录或配对,并在开启开发者模式后通过 Settings > Devices 将它连接到 Muse 应用。
开始之前我需要准备什么?一块 ESP32 开发板或一台树莓派/Linux 主机、iOS 或 Android 上开启了开发者模式的 Muse 移动应用,以及用于配对小工具的有效 SDK token。
这对我的硬件安全吗?没有任何保证——这属于黑客级别的折腾,README 明确警告实验过程中你可能把开发板弄成砖、失去保修或引发电压骤降。
Muse 应用是什么?我的小工具怎么连接它?Muse 是 iOS 和 Android 上的配套移动应用,小工具与它配对——你在 Settings > Devices 下开启开发者模式,然后寻找带有「MuseGadget」前缀的条目。
Apache-2.0 许可覆盖仓库里的所有内容吗?不是。像 esp32/components/minimp3/include/minimp3.h 和 esp32/main/pixelfont.c 这样的文件保留其原有的 CC0-1.0 和 BSD-2-Clause 许可,而 Jollybot 头像则完全不受 Apache 许可覆盖。
AI 编程智能体能帮我打造小工具吗?能,每个 SDK 目录都附有一份面向 Muse Code 等编程智能体的 AGENTS.md,旁边还有一份给人类阅读的常规 README.md。
我在哪里能找到其他小工具制作者?有一个社区 Discord,黑客们在上面分享作品、获取灵感并互相支持。
大小
13.2 MB
星标
2.8K
更新
提交Nov 19
时长
2个月
提交 · 90 天