Viewer: show the clock on the M5Stack CoreS3 in 3D #9
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!9
Loading…
Reference in a new issue
No description provided.
Delete branch "cores3-in-3d"
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?
Preview: 3D viewer with the CoreS3 (private Claude artifact). Pick V1 · CoreS3 under Version.
Was stacked on #8, which has merged; now based on
main.The 3D viewer gets a V1 · CoreS3 version: the M5Stack CoreS3 the clock runs on today, with the firmware running on its screen at the CoreS3's own 320 × 240. Until now the viewer only showed the firmware on the V2/V3 screens (616 × 284 and 600 × 450).
Boards (firmware): what a clock has is now a
Boardininclude/alarm_face.hpp, set per build with-Dflags, so the same code deploys to each board.platformio.inibuilds the CoreS3 with-DCLOCK_HAS_LAMP=0. On that build there's no Lamp tile (six tiles, one page, no dots), no lamp icon on the clock face (the sound icon takes its place), and the button only snoozes.helpleaves them out.sim_board()beforesim_init(). The state JSON ends withboard.has_lamp.SIM_LAMP) and hides the lamp toggle and the Wind down / Wake up jumps for it.platformio.inino longer pins the USB port, so uploads find the clock wherever it is plugged in.helphas no lamp commands, state hasmenu_page), and the time and settings came through.320x240-no_lamp-clock.pngand320x240-no_lamp-settings.png. New test:board_without_lampat 10 sizes.AGENTS.mdhas a Boards section.What changes
clock.py: acores3variant (kind="devkit"). It stands on its edge, 54 × 54 × 16 mm, with a touchscreen, power button, USB-C and camera. The outline is the published size; the screen, camera, button and USB-C positions are approximate.out/cores3/has the STEP, STL, GLB and report.python clock.py cores3rebuilds only the variants you name. Rebuilding all of them rewrites every committed STEP file with a new timestamp, so the other variants are untouched here.M5.BtnPWRis in the firmware. The fit and cost panels are simpler: size, screen, digit height, and the CoreS3 plus a cable. The lamp glow is off for this version, since its lamp is on the V2 breadboard.hardware/cad/README.md: four variants, and the variant filter.Tested locally (viewer served from
hardware/cad/viewer/, driven in the browser):clock.py cores3reports no clashes.Also:
clock.wasmis rebuilt and the screens are regenerated. The PlatformIO CoreS3 build (with the flag) succeeds. alarmclock.audrow.com hasn't been redeployed, so its STL/STEP download links forcores3404 until it is.🤖 Generated with Claude Code
After merge: redeploy alarmclock.audrow.com (
python hardware/cad/viewer.py, thennpx wrangler deployfromhardware/cad/site/) so the CoreS3 shows there and its STL/STEP links work.Feedback from the maintainer
Boardinalarm_face.hpp, set by-DCLOCK_HAS_LAMP=0inplatformio.inifor the CoreS3; the simulator sets it withsim_board(). Documented inAGENTS.md.upload_portandmonitor_portare gone fromplatformio.ini; a plainpio run -t uploadfound the CoreS3 onusbmodem2101and flashed it.fce65cec457e7fc17e2d7e7fc17e2d1ae7faa9f7f046e1466c55266e3713