Skip to content

feat: add standby mode support#6

Open
moneppo wants to merge 1 commit into
feat/sdk-developer-readinessfrom
feat/standby-mode
Open

feat: add standby mode support#6
moneppo wants to merge 1 commit into
feat/sdk-developer-readinessfrom
feat/standby-mode

Conversation

@moneppo

@moneppo moneppo commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements standby mode support based on firmware PR Modos-Labs/Glider#15, which wires the previously stubbed USBCMD_POWERDOWN (0x01) and USBCMD_POWERUP (0x02) commands to a system_standby flag in the firmware.

  • Display::enter_standby() — sends POWERDOWN; the display blanks the panel and stops updating
  • Display::exit_standby() — sends POWERUP; resumes normal operation
  • glider_enter_standby(Display*) / glider_exit_standby(Display*) in the C API (header auto-regenerated via cbindgen)
  • Standby example in Python, Rust, and C showing: connect → enter standby → wait 3s → exit standby

Note: This PR depends on feat/sdk-developer-readiness and should be merged after it. Testing against a device requires firmware from PR #15 or later.

Test plan

  • cargo test passes
  • cargo build --examples compiles standby
  • make -C examples/c standby compiles
  • With firmware from PR #15: cargo run --example standby puts the display into standby and wakes it

🤖 Generated with Claude Code

Implements USBCMD_POWERDOWN (0x01) and USBCMD_POWERUP (0x02) from
firmware PR #15, which wires these previously stubbed commands to the
system_standby flag.

Adds Display::enter_standby() and Display::exit_standby() in Rust/Python,
glider_enter_standby() and glider_exit_standby() in the C API, and a
standby example in all three languages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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