Skip to content

Releases

CYBER CLOCK v1.1.1 — review fixes for both targets (M5StickS3 + M5Cardputer)

Choose a tag to compare

@andjiang0083 andjiang0083 released this 29 Sep 14:57

CYBER CLOCK v1.1.1 — review fixes for both targets

English · 中文

A maintenance release. Both builds went through a full code review; nothing about
the UI changed — the rain engine, themes, layout and battery meter behave exactly
as in 1.1.0. What changed is state handling: power, wake, radio, microphone and
sprite allocation. Merged flash images for both targets are attached below.

Images

Both images are merged (bootloader @ 0x0 + partition table + application),
built with DIO flash mode, and written from offset 0x0.

File Target Size sha256
cyber-clock-v1.1.1-merged.bin M5StickS3 1,242,384 B f0795c4428576d7cc3657775ce2639fc4ba01bd0ea94f76c401226b3fd07755e
cyber-clock-cardputer-v1.1.1-merged.bin M5Cardputer 1,206,144 B 7162d5b707854cd737904d2f9f2b9142cb588ef525e9a7bf5e9500b0d466cf47

cyber-clock-m5burner-v1.1.1.zip is the ready-to-import M5Burner bundle
(catalogue JSON + both images).

Flash with M5Burner

Custom → Import Custom FW → pick the .zip (or the .bin directly, or the
bundle in m5burner/)
→ select Cyber Clock (StickS3) or Cyber Clock (Cardputer) → Burn.

Flash with esptool

esptool.py --chip esp32s3 --baud 921600 write_flash 0x0 cyber-clock-v1.1.1-merged.bin

Verify the download

shasum -a 256 cyber-clock-v1.1.1-merged.bin          # must match the table above

Built from

These images were produced by
tools/make-release.sh
from commit e901077 of this repository, with:

Component Version
PlatformIO Core 6.1.19
espressif32 platform pioarduino fork 55.03.39 (git+https://github.com/pioarduino/platform-espressif32.git#55.03.39)
Arduino core for ESP32 3.3.9
ESP-IDF (bundled) 5.5.4
M5Unified / M5GFX 0.2.23 / 0.2.30
esptool 5.3.0

Note that platform = espressif32 is an ambiguous name: it resolves to
whichever installed build reports the highest version. A machine that only ever
fetched the official platform ends up on 7.0.1 / Arduino core 2.x, which does not
match these images. The build's first line prints which one you got — see
BUILDING.md §6.

The boot log line to quote in bug reports is the version on the splash screen:
v1.1.1.

Changes in 1.1.1

Fixed

  • USB power detection. Power save was gated on M5.Power.isCharging(), which
    reads the charger's STAT pin — it goes false the instant the battery is full,
    so a desk clock on a cable still dimmed to zero and dropped into Light Sleep.
    Now gated on a 1 s-cached VBUS voltage reading.
  • Light Sleep button wake. The ext0 wake source was armed on GPIO0 (a
    Stick-Bus I²C line) instead of BtnA's GPIO11, so a short tap could not wake
    the clock; the post-wake button sampling window was also too narrow (10 ms).
  • WiFi radio left on after a cancelled or failed setup pass (StickS3): a scan
    that found nothing, or a cancelled SSID/password prompt, returned without
    shutting the radio down.
  • Microphone treated as dead after one hiccup. A single transient
    M5.Mic.record() failure (full buffer slot) disabled the spectrum until the next
    wake; three consecutive failures are now required.
  • Keyboard direction inverted on the Cardputer timezone screen (; scrolled
    down while the WiFi list scrolled up) — both lists now use ; = up, . = down.
  • createSprite() failure now prints SPRITE FAIL on screen instead of leaving a
    silent black panel.
  • Cardputer: the on-screen keyboard's 10th cell no longer runs 11 px past the
    right edge.

Changed

  • Power save no longer requires a valid NTP time, and the idle timer starts from
    the end of setup on every path.
  • Cardputer target: PSRAM disabled (board_build.psram = disable, no
    -DBOARD_HAS_PSRAM, no memory_type override). The Cardputer-Adv is an
    ESP32-S3FN8 with no PSRAM, and neither build ever used it — the full-screen
    sprite lives in internal DMA RAM. Flash usage drops ~36 KB.
  • Both targets build with the same platformio.ini include line
    (${PROJECT_DIR}) in the development and published trees.
  • Dead code removed (RAIN_NAMES, an unreachable Enter branch, a duplicate IMU
    begin(), a self-assigning getAttitude() call).

Verified

  • Both merged images were flashed and verified on real hardware (M5StickS3 and
    M5Cardputer) before publishing.
  • pio run succeeds for both targets: RAM 16.1 % / 16.2 %, flash 35.2 % / 34.1 %.
  • Two independent builds of the same tree differ by 71 bytes (StickS3) / 67 bytes
    (Cardputer) — the embedded ELF digest and __TIME__ only.
  • Release images are built with DIO flash mode (verified byte 0x02 by
    tools/make-release.sh).

Known limitations

  1. The Cardputer cannot Light Sleep. Its keys sit behind a TCA8418 I²C
    expander with no GPIO wake line, so 80 MHz + 1 fps is its floor.
  2. Timezones are fixed UTC offsets (−12 … +12), with no daylight-saving rules.
  3. Non-ASCII SSIDs (Chinese, emoji) render as □ — the font and the on-screen
    keyboard are ASCII-only.
  4. First boot needs a 2.4 GHz access point. After NTP sync the radio is
    switched off on purpose; without a successful sync the display counts up from
    boot instead of showing the time.

Full history: CHANGELOG.md

Credits

Built on M5Stack's M5Unified/M5GFX, Espressif's Arduino core and ESP-IDF, and a
WiFi provisioning layer derived from
bmorcelli/Launcher (MIT, © 2023
shikarunochi). Full attribution:
CREDITS.md.
MIT licensed.


中文

维护版本。两个版本都过了一遍完整代码走查;界面零变化——数字雨、主题、布局、电量条与
1.1.0 完全一致。改的都是状态处理:供电判定、唤醒、射频、麦克风、sprite 分配。下面挂着两个
目标的合并刷机镜像。

镜像

两个都是合并镜像(bootloader @ 0x0 + 分区表 + 应用),DIO flash mode,从偏移
0x0 写入。

文件 目标 大小 sha256
cyber-clock-v1.1.1-merged.bin M5StickS3 1,242,384 B f0795c4428576d7cc3657775ce2639fc4ba01bd0ea94f76c401226b3fd07755e
cyber-clock-cardputer-v1.1.1-merged.bin M5Cardputer 1,206,144 B 7162d5b707854cd737904d2f9f2b9142cb588ef525e9a7bf5e9500b0d466cf47

cyber-clock-m5burner-v1.1.1.zip 是可直接导入 M5Burner 的打包件(目录 JSON + 两个镜像)。

M5Burner:Custom → Import Custom FW → 选 .zip(或直接选 .bin,或
m5burner/ 里的打包文件)
→ 选中 Cyber Clock (StickS3) 或 Cyber Clock (Cardputer) → Burn。

esptool:

esptool.py --chip esp32s3 --baud 921600 write_flash 0x0 cyber-clock-v1.1.1-merged.bin

下载后请与上表 sha256 核对。

构建基线

镜像由 tools/make-release.sh
从本仓库提交 e901077 构建:PlatformIO Core 6.1.19、espressif32 平台 = pioarduino fork
55.03.39
(git+https://github.com/pioarduino/platform-espressif32.git#55.03.39)、
Arduino core 3.3.9、ESP-IDF 5.5.4、M5Unified 0.2.23、M5GFX 0.2.30、esptool 5.3.0。

注意 platform = espressif32 这个名字有歧义:它会解析到本机已安装的、版本号最高的那个
build。只拉过官方平台的机器会落到 7.0.1 / Arduino core 2.x,与这里的镜像对不上。构建第一行
会打印实际用的是哪一个,见 BUILDING_CN.md §6。

报 bug 时请报开机动画上的版本号:v1.1.1。

本版修复

  • USB 供电判定:原来用 M5.Power.isCharging()(读充电器 STAT 脚,充满即 false),
    插着线的桌面钟照样 60s 降频、180s 背光归零进 Light Sleep。改用 VBUS 电压(缓存 1s)。
  • Light Sleep 按键唤醒:ext0 唤醒源错配在 GPIO0(Stick-Bus 的 I²C 线),改为 BtnA
    的 GPIO11;唤醒后的按键采样窗口也从 10ms 放宽到约 60ms(轻点不再漏检)。
  • 取消/失败的配网不再留着射频(StickS3):扫描不到网络、或取消选网/输密码,原来都不关
    WiFi,射频会一直开着。
  • 麦克风瞬态失败不再永久禁用频谱:M5.Mic.record() 在缓冲槽占满/锁竞争时也会返回
    false,现在要连续 3 次失败才判硬件故障。
  • Cardputer 时区页方向键与 WiFi 列表统一(原来两处相反),提示文案同步更正。
  • createSprite() 失败现在屏幕上直接打 SPRITE FAIL,不再静默黑屏。
  • Cardputer 屏幕键盘第 10 格不再越界 11px。

其它变更

  • 省电/休眠不再要求已成功对时;空闲计时在所有路径上都从 setup 结束开始算。
  • Cardputer 目标关闭 PSRAM(board_build.psram = disable,并去掉 -DBOARD_HAS_PSRAM
    与 memory_type)。Cardputer-Adv 是 ESP32-S3FN8,本就没有 PSRAM,且两个版本都不依赖
    PSRAM(全屏 sprite 走内部 DMA RAM)。Flash 占用减少约 36KB。
  • 开发树与公开树使用同一条 ${PROJECT_DIR} include,两个目录都能直接 pio run。
  • 清理死代码(RAIN_NAMES、不可达的 Enter 分支、重复的 IMU begin()、自赋值的
    getAttitude() 调用)。

已验证

  • 两个合并镜像均已刷入真机验证(M5StickS3 与 M5Cardputer)后才发布。
  • 两个目标 pio run 均成功:RAM 16.1% / 16.2%,Flash 35.2% / 34.1%。
  • 同一份代码两次独立构建只差 71 字节(StickS3)/ 67 字节(Cardputer)——仅内嵌的 ELF 摘要
    与 __TIME__。
  • 发布镜像由 tools/make-release.sh 校验为 DIO flash mode(字节 0x02)。

已知限制

  1. Cardputer 无法 Light Sleep:按键挂在 TCA8418 I²C 扩展芯片后,没有可唤醒 CPU 的 GPIO,
    80MHz + 1fps 就是它的下限。
  2. 时区是固定偏移(−12…+12),不含夏令时规则。
  3. 只支持 ASCII:中文/emoji SSID 显示为 □。
  4. 首次开机需要 2.4GHz 接入点:NTP 成功后射频会被主动关掉;没能对时则显示开机计时。

完整历史见 CHANGELOG.md。

CYBER CLOCK v1.1.0 — M5StickS3 + M5Cardputer

Choose a tag to compare

@andjiang0083 andjiang0083 released this 24 Sep 09:03

CYBER CLOCK v1.1.0 — first public release

English · 中文

A cyberpunk desk clock for two M5 handhelds, built from one code base. Merged
flash images for both targets are attached below.

What works in this release

M5StickS3 M5Cardputer
NTP timekeeping + timezone picker (NVS) ✅ ✅
Column-trail digital rain, 6 character sets ✅ ✅
6 neon palettes, 3 display modes ✅ ✅
40-band microphone spectrum ✅ ✅
IMU shake-to-theme ✅ ✅
Brightness, 7 levels ✅ hold BtnB ✅ + / -
WiFi provisioning ✅ on-screen keyboard ✅ physical keyboard
Idle power save (80 MHz + 1 fps) ✅ ✅
Light Sleep, backlight off, button wake ✅ ❌ not possible (keyboard on I²C)

Full feature table, controls and the honest list of limitations:
README.md ·
README_CN.md

Images

Both images are merged (bootloader @ 0x0 + partition table + application),
built with DIO flash mode, and written from offset 0x0.

File Target Size sha256
cyber-clock-v1.1.0-merged.bin M5StickS3 1,242,592 B cb90601ef28eb38f302a674a707efbb433d896056f5ccf2699c4a2e3475a9b3f
cyber-clock-cardputer-v1.1.0-merged.bin M5Cardputer 1,242,384 B c04e505f03e061993f5bb20d39c86cff390d6da8ddfc1ba1b8153b456af3a2e4

Flash with M5Burner

Custom → Import Custom FW → pick the .bin (or the bundle in
m5burner/) →
select Cyber Clock (StickS3) or Cyber Clock (Cardputer) → Burn.

Flash with esptool

esptool.py --chip esp32s3 --baud 921600 write_flash 0x0 cyber-clock-v1.1.0-merged.bin

Verify the download

shasum -a 256 cyber-clock-v1.1.0-merged.bin          # must match the table above

Built from

These images were produced by
tools/make-release.sh
from commit b9430f8 of this repository, with:

Component Version
PlatformIO Core 6.1.19
espressif32 platform 7.0.1
Arduino core for ESP32 3.3.9
M5Unified / M5GFX 0.2.23 / 0.2.30
esptool 5.3.0

The build has no pinned library versions (see
BUILDING.md §6),
so a rebuild today may link a newer M5Unified and differ by a few kilobytes from
the table above. The source is the same.

The boot log line to quote in bug reports is the version on the splash screen:
v1.1.0.

Known limitations

  1. The Cardputer cannot Light Sleep. Its keys sit behind a TCA8418 I²C
    expander with no GPIO wake line, so 80 MHz + 1 fps is its floor.
  2. Timezones are fixed UTC offsets (−12 … +12), with no daylight-saving rules.
  3. Non-ASCII SSIDs (Chinese, emoji) render as □ — the font and the on-screen
    keyboard are ASCII-only.
  4. First boot needs a 2.4 GHz access point. After NTP sync the radio is
    switched off on purpose; without a successful sync the display counts up from
    boot instead of showing the time.

Changes in 1.1.0

  • Cardputer build brought to feature parity with the StickS3 build.
  • Fixed the long-press double-trigger: one hold fired both the tap and the hold
    action.
  • Unified the WiFi shutdown path; config.h now holds every tunable constant;
    corrected shake-detection sensitivity; per-boot rain seed (esp_random());
    Cardputer AP gateway address corrected; dead code removed. No visual change.

Full history: CHANGELOG.md

Credits

Built on M5Stack's M5Unified/M5GFX, Espressif's Arduino core and ESP-IDF, and a
WiFi provisioning layer derived from
bmorcelli/Launcher (MIT, © 2023
shikarunochi). Full attribution:
CREDITS.md.
MIT licensed.


中文

一台设备一块钟,两个版本共用同一套代码。下面挂着两个目标的合并刷机镜像。

本版本可用的功能

M5StickS3 M5Cardputer
NTP 对时 + 时区选择(存 NVS) ✅ ✅
列轨迹数字雨,6 种字符集 ✅ ✅
6 套霓虹配色,3 种界面模式 ✅ ✅
40 段麦克风频谱 ✅ ✅
摇一摇换主题(IMU) ✅ ✅
亮度 7 档 ✅ 长按 BtnB ✅ + / -
WiFi 配网 ✅ 屏幕键盘 ✅ 物理键盘
闲置省电(80MHz + 1fps) ✅ ✅
Light Sleep + 关背光 + 按键唤醒 ✅ ❌ 做不到(键盘挂 I²C)

完整功能表、操作说明和"诚实的限制清单"见
README_CN.md。

镜像

两个镜像都是合并镜像(bootloader @ 0x0 + 分区表 + 应用),DIO flash mode,从偏移 0x0 写入。

文件 目标 大小 sha256
cyber-clock-v1.1.0-merged.bin M5StickS3 1,242,592 B cb90601ef28eb38f302a674a707efbb433d896056f5ccf2699c4a2e3475a9b3f
cyber-clock-cardputer-v1.1.0-merged.bin M5Cardputer 1,242,384 B c04e505f03e061993f5bb20d39c86cff390d6da8ddfc1ba1b8153b456af3a2e4

M5Burner 刷机: Custom → Import Custom FW → 选 .bin(或
m5burner/ 里的打包)→ 选中 Cyber Clock (StickS3) 或 Cyber Clock (Cardputer) → Burn。

esptool 刷机:

esptool.py --chip esp32s3 --baud 921600 write_flash 0x0 cyber-clock-v1.1.0-merged.bin

校验: shasum -a 256 cyber-clock-v1.1.0-merged.bin,结果需与上表一致。

构建来源

镜像由本仓库 commit b9430f8 经
tools/make-release.sh
产出,工具链版本:PlatformIO Core 6.1.19、espressif32 平台 7.0.1、Arduino 核心 3.3.9、M5Unified / M5GFX 0.2.23 / 0.2.30、esptool 5.3.0。

由于工程没有锁定库版本(见
BUILDING_CN.md §6),
今天重新构建可能链到更新的 M5Unified,尺寸会与上表差几 KB。源码是同一份。

报 bug 时请引用开机动画上的版本号:v1.1.0。

已知限制

  1. Cardputer 无法 Light Sleep。 它的按键挂在 TCA8418 I²C 扩展芯片后面,没有 GPIO 唤醒线,80MHz + 1fps 就是下限。
  2. 时区是固定偏移(−12 … +12),不含夏令时规则。
  3. 非 ASCII SSID(中文、emoji)显示为 □——字体和屏幕键盘都只支持 ASCII。
  4. 首次开机需要一个 2.4GHz 热点。 对时成功后关闭射频是刻意的;从未对时成功时,屏幕显示开机计时而不是时间。

1.1.0 变更

  • Cardputer 版本与 StickS3 版本功能对齐。
  • 修复长按双触发:一次长按会同时触发短按和长按两个动作。
  • 统一 WiFi 关停路径;config.h 集中所有可调常量;修正抖动检测灵敏度;数字雨按 esp_random() 每次开机取新种子;修正 Cardputer AP 网关地址;清理死代码。视觉零变化。

完整历史见 CHANGELOG.md。

致谢

建立在 M5Stack 的 M5Unified/M5GFX、乐鑫的 Arduino 核心与 ESP-IDF,以及派生自
bmorcelli/Launcher(MIT,© 2023 shikarunochi)
的 WiFi 配网层之上。完整署名见
CREDITS.md。MIT 许可。