# Clawd Mochi

带高帧率视觉效果、网页控制和计时功能的 ESP32-C3 桌面摆件。

🦀⚡ Clawd Mochi PRO: ESP-IDF high-FPS cyber visual effects, web controller, smart clock & timer for ESP32-C3 + ST7789

带高帧率视觉效果、网页控制和计时功能的 ESP32-C3 桌面摆件。

- id: xukuncai-hub-clawd-mochi
- author: xukuncai-hub
- repository: https://github.com/xukuncai-hub/clawd-mochi
- license: MIT
- shape: wide
- scenes: art
- boards: ESP32-C3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/xukuncai-hub-clawd-mochi/
- html_zh: https://esp32gallery.com/zh/projects/xukuncai-hub-clawd-mochi/
- json: https://esp32gallery.com/data/catalog/projects/xukuncai-hub-clawd-mochi.json

## Hardware

ESP32-C3. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-C3；请在上游构建文档中核对具体板型、供电与接线。

## English

```
A desktop ornament shaped like a crab, running 39 full-screen mathematical animations on a 1.54-inch 240×240 ST7789 IPS panel. The ESP32-C3 computes each frame into a 115.2 KB RGB565 buffer and pushes it over 40 MHz hardware SPI with DMA in 60-line chunks, using fixed-point and lookup-table math instead of floating point. A Fisher-Yates shuffle cycles through every effect once before repeating, switching every 12 seconds; the onboard BOOT button on GPIO 9 advances one effect, double-clicks rotate the image in 90-degree steps, and a long press locks the current one. It boots straight into an animation, starts no Wi-Fi and needs no phone. A buzzer on GPIO 6 is optional. PlatformIO with ESP-IDF builds it, and printable shell files are included.
```

## 中文

```
做成螃蟹造型的桌面摆件，1.54 寸 240×240 的 ST7789 IPS 屏上跑 39 款全屏数学动画。ESP32-C3 把每帧算进 115.2 KB 的 RGB565 显存，再用 40 MHz 硬件 SPI 加 DMA、每块 60 行往屏上推，数学运算走定点数和查表。播放顺序由 Fisher-Yates 洗牌决定，一轮里 39 款各来一次且不重样，每 12 秒换一个；板载 BOOT 键（GPIO 9）单击跳到下一个，快速双击把画面转 90 度，长按则锁住当前特效。上电从 3D 甜甜圈开始，不开 Wi-Fi、不连手机，蜂鸣器接 GPIO 6 可有可无。用 PlatformIO 配 ESP-IDF 编译烧录，外壳 STL 也一并给出。
```
