Skip to content

display-refresh-scheduler#17

Open
MoyerLiu wants to merge 1 commit into
mainfrom
display-refresh-scheduler
Open

display-refresh-scheduler#17
MoyerLiu wants to merge 1 commit into
mainfrom
display-refresh-scheduler

Conversation

@MoyerLiu

Copy link
Copy Markdown
Collaborator

Summary

  • Add a display refresh scheduler that coalesces rapid UI refresh requests.
  • Defer EPD uploads during the guard window and flush only the latest UI state.
  • Keep startup full refresh direct while scheduling later button, weather, WiFi, and minute updates.

Why

Rapid key presses can update UI state faster than the e-paper panel can safely refresh. This makes the logical selection advance while the visible frame lags behind. The scheduler lets input update state immediately, then sends one current frame when the display path is ready.

Validation

  • Compiled with esp32:esp32:XIAO_ESP32S3:PSRAM=opi,PartitionScheme=max_app_8MB.
  • Uploaded successfully to COM4.
  • Serial log showed coalesced refresh behavior, for example [Display] flush QUALITY (9 requests).

@MoyerLiu MoyerLiu marked this pull request as ready for review June 12, 2026 07:07
@MoyerLiu MoyerLiu force-pushed the display-refresh-scheduler branch from ce546bd to a413f65 Compare June 12, 2026 08:03
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.

1 participant