Skip to content

Update StopWatch UserDemo to V1.0 - #9

Merged
Forairaaaaa merged 2 commits into
m5stack:mainfrom
Forairaaaaa:mooncake-ui-migration
Dec 1, 2026
Merged

Forairaaaaa merged 2 commits into
m5stack:mainfrom
Forairaaaaa:mooncake-ui-migration

Conversation

@Forairaaaaa

Copy link
Copy Markdown
Contributor

Port the UI to MCUI and pin Mooncake UI v0.1.0. Preserve FluidBox, watch-face rotation, Wi-Fi settings, and PMIC LED control.

Detect CST820 and CST9217 at runtime, add a multitouch test for C152-V11, and place FluidBox last in the launcher.

Port the UI to MCUI and pin Mooncake UI v0.1.0. Preserve FluidBox, watch-face rotation, Wi-Fi settings, and PMIC LED control.

Detect CST820 and CST9217 at runtime, add a multitouch test for C152-V11, and place FluidBox last in the launcher.
@Forairaaaaa
Forairaaaaa merged commit 1eac414 into m5stack:main Dec 1, 2026
1 check passed
@m5agent

m5agent commented Dec 1, 2026

Copy link
Copy Markdown

Thanks — I built and exercised the PR head e7d18cf on the StopWatch virtual device.

Conclusion: the MCUI migration builds and runs, and the functionality described in the PR body is present on the virtual C152 profile, including FluidBox last in the launcher and the V1.0 version string. One item needs attention before merge: the repository's Formatting Check workflow is red on this head.

Evidence level: virtual-device validation (no physical C152/C152-V11 available here).

Build (ESP-IDF v5.5.5, the version named in the README):

python3 ./fetch_repos.py
idf.py -DIDF_TARGET=esp32s3 build
  • 1476/1476 steps, exit 0; app image 3,514,896 B of the 5,177,344 B ota_0 partition (32% free).
  • mooncake-ui resolves to 6a9caa8, exactly tag v0.1.0, as the description says.

Runtime (Device Service stopwatch profile, esp32sim, CO5300 466×466 with a CST820 touch model):

  • clean POWERON boot: CST820 detected, boot logo presented in 7 ms, no panic, no task-watchdog report;
  • first-run guide renders; holding A+B returns to the launcher;
  • launcher pages: AlarmClock, WatchFace, Stopwatch, Badge, IMU, Audio.FFT, LuckyWheel, Settings, FluidBox — FluidBox is last (app id 9);
  • Settings shows Device (Brightness/Volume/Button/Wi-Fi), Time & Date and Version: V1.0; there is no Diagnostics group on this profile, consistent with supportsMultiTouch() being CST9217-only;
  • the Wi-Fi page opens with the enable toggle and an Off status;
  • Stopwatch START counts to 00:00:04.11 and STOP works;
  • the watch face renders and rotates when an IMU orientation sample is injected;
  • FluidBox opens and animates (two frames 2 s apart differ);
  • the power-LED-off path runs at display init (M5PM1_LED: LED Enable Level: Low).

Formatting Check: run 46609580232, job 142511040382 fails at e7d18cf. I reproduced it with clang-format 22.1.8 over the same scope (all tracked C/C++, excluding /assets and /hal/drivers): 70 of 137 files differ from .clang-format — e.g. consecutive-assignment alignment in main/apps/app_launcher/app_launcher.cpp and one-line methods in main/hal/hal.h. Running clang-format over main/ and simu/ should clear it. The complete list is in format-failing-files.txt. Some of those files were already non-conforming at base, but this PR rewrites them, so the check can be made green here.

NOT RUN: physical C152/C152-V11; CST9217 detection and the V11 multitouch test (the model only exposes a CST820 at I2C 0x15); acoustic output; Wi-Fi association; battery/charging; PMIC LED when brightness is 0; long-run FluidBox performance.

Serial log, crash summary, captured frames and the format-check reproduction are in the public record: report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants