Skip to content

fix power-on processing when running on batteries - #11693

Merged
dhalbert merged 1 commit into
adafruit:mainfrom
bablokb:inky_fix
Oct 30, 2026
Merged

dhalbert merged 1 commit into
adafruit:mainfrom
bablokb:inky_fix

Conversation

@bablokb

@bablokb bablokb commented Oct 30, 2026

Copy link
Copy Markdown

This PR fixes power-on behavior when running on batteries and makes the initial button state available.

Currently, power is latched in board_init(), which can take 3-10s until it runs (depending e.g. on web-workflow). The user has to press the button this long to keep the system running. This PR latches power early, and also saves the state of the shift-register so the user can later query which button was used to turn the system on.

For the Inky-Frame 7.3 there is some additional code-cleanup: board_init() it created three DigitalInOuts locally, but they were never exposed so the pins were not available anymore.

@dhalbert dhalbert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Gadgetoid Is this relevant for you for MicroPython, etc.? Do you already know about this?

@dhalbert
dhalbert merged commit 543ce6f into adafruit:main Oct 30, 2026
17 checks passed
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.

2 participants