Run the real firmware on the 3D model's touchscreen #2
No reviewers
Labels
No labels
accessibility
approved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
audrow/alarm-clock-m5cores3!2
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/wizardly-gates-q0o1df"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Compiles the clock firmware (
src/main.cpp+include/alarm_face.hpp, unchanged) to WebAssembly and runs it on the 3D viewer's touchscreen, so you can use the clock's actual interface on the model.What's in it
sim/: a firmware simulator.shim/M5Unified.handshim/Preferences.hstand in for the M5Stack libraries. They cover just whatmain.cppuses.sim.cppexportssim_init/sim_loop/sim_touch.build.pybuildsclock.wasm(44 KB, no system imports) with Zig's C++ toolchain (pip install ziglang).hardware/cad/viewer_template.html,viewer.py):Checked
clock.wasmbyte-identical to the committed one.Follow-up (not in this PR)
Nothing yet rebuilds
clock.wasmwhensrc/main.cppchanges. A CI step runningsim/build.pywould catch both a stale binary and a new M5Unified call the shim doesn't cover.🤖 Generated with Claude Code
https://claude.ai/code/session_01CL9u8wcccZXQeAVwboNhNa
Generated by Claude Code