feat: report temperatures in /api/status - #59
Merged
Merged
Conversation
Chip (temperatureRead), battery gauge (BQ27220/CW2017) and, on S3 builds with the UC8179 driver, the panel's on-chip sensor with its sample age. Sensors a board lacks are omitted. Bumps freeink-sdk to 3c20ecf (feat/status-temps on the fork, based on ad146a5). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
Its sensor driver costs ~3.8 KB of flash on a build at 94.3%. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: /api/status had no temperature readings.
After: /api/status has a
temperaturesobject withchip(ESP32-S3 only),gauge(BQ27220 or CW2017 where present) andpanel(UC8179 on the X4 Pro, with its sample age). Sensors a board lacks are omitted.How: the SDK pin moves to the fork's feat/status-temps, which adds the gauge temperature read and a UC8179 panel temperature read (sampled after a refresh, at most once per 60 s) behind the new
FREEINK_UC8179_PANEL_TEMPflag, on for S3 UC8179 boards only. The chip sensor is skipped on the C3 because its driver costs about 3.8 KB of flash. C3 flash +468 B.🤖 Generated with Claude Code
https://claude.ai/code/session_01XgLRarbAmBVepTPKCK7mgd
Generated by Claude Code