{"schema_version":1,"id":"dice","name":{"en":"Home Dice · 3D Dice"},"summary":{"en":"A small-screen 3D dice roller for tabletop games, with touch, motion and button input.","zh":"一颗骰子在 480x480 的 AMOLED 上翻滚，点屏、摇一摇或者按板上的 GPIO18 都能掷，最后停在某个点数上。"},"purpose":"3D dice roller","tier":"creator","author":"esp32gallery","repository":"https://github.com/esp32gallery/esp32-home-dice","shape":"square","scenes":["kids","games"],"boards":[{"name":"Waveshare ESP32-S3-Touch-AMOLED-2.16","page":"https://esp32gallery.com/boards/waveshare-esp32-s3-amoled/"},{"name":"ESP32-S3"}],"native_board":{"en":"Waveshare ESP32-S3-Touch-AMOLED-2.16","zh":"微雪 ESP32-S3-Touch-AMOLED-2.16","page":"https://esp32gallery.com/boards/waveshare-esp32-s3-amoled/"},"motion":true,"hardware":{"en":"480 × 480 AMOLED display and IMU. The browser preview replays frames rendered by the project's shared renderer."},"notes":{"en":"A 480x480 AMOLED fills with a spinning dice cube, tumbling after a touch, a shake or a press of the board's GPIO18 button and settling on a face. Rendering happens on the board itself in Arduino code, drawn as signed distance fields; a native host check compiles the same renderer on a computer to verify the face orientation before anything is flashed. The target is the Waveshare ESP32-S3-Touch-AMOLED-2.16 with its CO5300 panel, CST9220 touch and QMI8658 IMU, and the sketch needs Arduino_GFX, SensorLib and the CST92xx touch driver. The project is archived: the dice is now one app inside Family Hub, which runs one firmware with Roll Dice and Voice Notes, so flashing from here gives an older renderer that is no longer maintained.","zh":"一颗骰子在 480x480 的 AMOLED 上翻滚，点屏、摇一摇或者按板上的 GPIO18 都能掷，最后停在某个点数上。画面在板子上用 Arduino 代码以有符号距离场的方式实时画出；同一个渲染器可以在电脑上编一份本地检查程序，先验证每个面的朝向再烧录。目标板是 Waveshare ESP32-S3-Touch-AMOLED-2.16，靠 CO5300 屏、CST9220 触摸和 QMI8658 姿态传感器，依赖 Arduino_GFX、SensorLib 和 CST92xx 触摸驱动。这个仓库已经归档：骰子现在是 Family Hub 里的一个 App，那套固件在同一个 Home 屏上放了 Roll Dice 和 Voice Notes 两个应用，从这里刷机只会得到不再维护的旧渲染器。"},"readme_excerpts":[{"label":"Input","quote":"Roll with the touchscreen, shake gesture, or the board's GPIO18 button."},{"label":"Build","quote":"Open firmware/dice3d/dice3d.ino as an Arduino sketch."},{"label":"Test","quote":"This checks the renderer's face orientation and writes sample PPM images to /tmp."},{"label":"Status","quote":"This repository is archived"}],"images":{"type":"animation","primary":"https://esp32gallery.com/previews/home-dice/poster.jpg","poster":"https://esp32gallery.com/previews/home-dice/poster.jpg","sources":["https://esp32gallery.com/media/home-dice-throw.webp"]},"media_credit":{"status":"site-original","creator":"ESP32 Gallery / ESP32 Home Dice","source":"https://github.com/esp32gallery/esp32-home-dice","note":{"en":"Project-rendered animation from the site's own open-source dice project.","zh":"来自本站自有开源骰子项目的渲染动画。"}},"preview":{"browser_playable":true,"kind":"interactive_recording","label":{"en":"Interactive replay","zh":"交互回放"},"width":480,"height":480,"shape":"square","entry":"https://esp32gallery.com/previews/home-dice/index.html","page":"https://esp32gallery.com/play/dice/","package_sha256":"3bd39247782d47826172af624487403cb0903cd85447d1d7b7fb7cb7553e2bcb","version":"3bd39247782d"},"stars":0,"pushed_at":"2026-10-19T13:04:02Z","urls":{"html":"https://esp32gallery.com/projects/dice/","html_zh":"https://esp32gallery.com/zh/projects/dice/","json":"https://esp32gallery.com/data/catalog/projects/dice.json","markdown":"https://esp32gallery.com/data/catalog/projects/dice.md","play":"https://esp32gallery.com/play/dice/"}}
