Verify REG0E bits 6:0 so both 0x7F and 0xFF readbacks pass. Preserve the suspend writes, strict checks on the other registers, I2C error handling, retries, and sleep policies. Add exhaustive host coverage and update bilingual power guidance.
Fixes#58
Captured after the Sound Effects Keychain v1.4.0 release (commit ce9b13d).
Records how to power the LCD panel, backlight, audio codec, and fuel gauge
down before deep sleep, the esp_codec_dev_close() only-suspends-if-opened
trap (chip left in es8311_open config state when audio was never played),
and that the MCU side is already handled by esp_sleep_isolate_digital_gpio
while the always-on PA and 3.3V regulator are out of software reach.
Revert the temporary fork pin in sync-main.yml back to the aormsby
Fork-Sync-With-Upstream-action now that aormsby/Fork-Sync-With-Upstream-action#85
(rev-list branch/dir ambiguity fix) is merged on aormsby main.
Also lands the CI-validation.md (+ zh_CN) doc updates onto the new
docs/development/ci/ path from the upstream docs reorganization.
Record the reusable pitfalls from the Sound Sentry release under
docs/experiences/y2lin/ as bilingual entry pairs:
- serial-screenshot-protocol: the FAP_SCREENSHOT_V1 implementation lessons
(install the USB-serial-JTAG driver, substring-match the command, render
into a statically reserved full-screen buffer, chunk payload writes to
the tx ring buffer, mute logs during the binary window, fail silently).
- meter-ui-smoothing-and-layout: the meter-page UI lessons (asymmetric EMA
readout smoothing, fixed-width numeric boxes, creation-time animation
anchors, stray-block triage, LVGL pool exhaustion as a white-screen
cause).
Link both entries from the experiences archive index and the development
experience-notes index, in both languages.
brand moved to docs/brand/; correct the remaining prose references that still
point to the old docs/assets/brand path (in brand docs and the plays-archive skill).
Links were already correct; this updates the descriptive text.
Consolidate the public brand-and-product document and the official product
visual references into a single docs/brand/ directory:
- Move docs/assets/brand/ (README + product reference images) to docs/brand/.
- Move docs/brand-and-product.md / .zh_CN.md into docs/brand/.
- Update the docs/README index (EN/ZH) to list docs/brand/ as a function area.
- Point brand reference links in skills/plays-archive and brand docs at docs/brand/.
- docs/assets/ is left in place (its .gitkeep and fork-owner convention remain).
Reorganize the AI-agent documentation by function area:
- Move the plays/ application archive and experiences into docs/reference/, grouped by contributor <username>/ (flat experience entries + application subdirectories), with a single reference/README entry.
- Add a second level under docs/development/ (engineering/, ci/, release/); fold agent-guide into ai-guide; flatten the six project-completion sub-documents into one file.
- Unify each directory to a single README (drop every INDEX); fold assets/{fonts,images,music} README leaves into assets/README; remove the empty docs/software-design/.
- Add an upstream-PR rule: do not add or modify the repository-root README.
- Update all cross-references and bibliographic links (EN/ZH aligned); validate.sh --static passes. The repository-root README is left untouched.
The ESP32-C3 deep-sleep wakeup section now documents the bitmask-vs-pin-number
pitfall: esp_deep_sleep_enable_gpio_wakeup() takes a pin bitmask, so passing
GPIO_NUM_0 (=0) is treated as an empty mask, the function returns
ESP_ERR_INVALID_ARG and arms no wake source at all, and the chip sleeps with no
way to wake. Pass 1ULL << GPIO_NUM_0 and check the return value. This was the
root cause of a real 'slept but won't wake' bug and is now verified on the
sound-keychain firmware (commit 63f0ebd): sleeps after 5 min idle, wakes on any
button. Updated both the English and Simplified Chinese peers.
The rename to project-completion left four references to the deleted
after-release.md: two in the CHANGELOG (en + zh_CN) and two in the
post-release-follow-up experience entry's related-documents section.
Signed-off-by: Shinku <17696928+Shinku-Chen@users.noreply.github.com>
Split the old ci.yml into two focused workflows so the ESP-IDF firmware
build only runs when the change actually touches firmware.
- static-checks.yml: repository/host checks on every PR, push to main, and
manual dispatch.
- firmware-checks.yml: ESP-IDF build with paths-ignore for docs/**, plays/**,
skills/**, and *.md so documentation-only changes skip the firmware build.
assets/** is intentionally not ignored (may embed fonts/images/audio).
- Update CI-validation.md (+ zh_CN) to describe the two workflows, the path
filtering, and the required-check compatibility caveat.
Address review feedback:
- Make all six actions optional; README update (E) is the default companion
of archiving (D), not a standalone requirement.
- Restore the post-release full-build hardware verification that the old
after-release flow carried and was dropped in the rework.
- Align archive path with the plays convention (plays/<username>/<app-name>/).
- Align the three text-only rules: plays/README, plays-archive skill, and the
archive-plays action now all record the cover by file name/format only.
- Build the merged full image with ./tools/validate.sh --firmware (not idf.py
build); confirm commit/push/tag/release separately in action B.
- Rename the entry point from post-release follow-up to project completion in
AGENTS, the indexes, and cross-references.
Add a reusable, upstream-benefiting post-release experience entry from the
'What to Eat Today' firmware release:
- Display refresh: direct esp_lcd_panel_draw_bitmap refresh of a single image
rect, big-endian RGB565, this project's LVGL I8 palette layout, and an
optional interlaced two-pass mode.
- Deep-sleep wakeup: ESP32-C3 has no EXT0/EXT1; use
esp_deep_sleep_enable_gpio_wakeup on an RTC GPIO, noting ESP-IDF 5.5.3's
default internal-resistor behavior.
- LVGL object-type misuse crash signature (lv_tlsf_block_size).
Link the bilingual entry from both the English and zh_CN experience indexes.
Hardware facts are marked Unverified pending source commit/tag, board revision,
and reproduced measurements.
Require the feature/* branch to be created from a base aligned with FoloToy/ai-passport:main, using the latest upstream main as the branch-off point rather than the fork's own main. A fork main may be stale or unable to sync, so it is not a reliable baseline. Aligns the English and zh_CN fork guides.
The battery indicator shows in the top-right by default, but the corner already
has a cloud decoration (add_cloud, around x≈188, y≈8). Place the battery in the
clear sky space beside or below the cloud, or at the very top-right edge, so it
does not overlap or cover the cloud. Documented in agent-guide and
coding-conventions in both languages.
A user interface shows the battery level in the top-right corner by default,
unless the developer specifies a different placement or explicitly does not want
it. Read it from bsp_battery_soc() (and bsp_battery_mv() where useful), render
it as a small battery indicator or percentage in the reserved top-right area,
and degrade gracefully when the reading is -1 (unavailable) instead of drawing a
number. Documented in agent-guide (runtime invariants) and coding-conventions in
both languages.
After a release is complete (community or Git), add the device-verification
step as Track 1: download the release's merged full firmware
(FoloToy-AI-Passport-full.bin, the flashable complete build from 0x0), flash it
to a device, and confirm it runs normally. Treating a successful build or upload
as hardware validation is wrong; this step proves the release artifact actually
boots. Generalized the intro from community-only to any completed release, and
renumbered the archive / issue / experience tracks to 2-4.
A release happens when the code is finished, usable, and ready to ship — it is
not a commit. When the publish destination is Git, the flow is: commit the
finished code, then open a release for it. The release artifact may be produced
by the CI/CD pipeline (recommended, tag-triggered via build-firmware.yml) or it
may be a local .bin the developer already built. Added an explicit 'neither yet'
route when the code is still in development. Documented in publish-to-community
in both languages.