Skip to content

LED feedback for safe mode and BLE discovery mode on boot-button boards - #11232

Open
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:boot-button-led-feedback
Open

LED feedback for safe mode and BLE discovery mode on boot-button boards#11232
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:boot-button-led-feedback

Conversation

@dhalbert

Copy link
Copy Markdown
Collaborator

On boards using the BOOT button to enter safe mode or BLE discovery, there was no LED feedback that the user's BOOT button press was successful.

  • Now a boot button press during the safe mode yellow flash or the BLE discovery blue flash restarts the interval, and the status LED shows solid yellow or blue for a second as user feedback.
  • The two intervals run consecutively and both polled the button by level, so a click during the yellow flash was often still detected when the BLE discovery interval started, causing the board to enter discovery mode and erase bonding unasked. The discovery interval now requires the button to be released beforehand.

Tested on a Metro ESP32-S3. Also built for feather_nrf52840_express and tested for any regression with double-click reset mode changes.

Claude wrote the code. I tested and found the overlap problem, and had it fix that. I rewrote the comments and the text here for clarity.

Now pressing the boot button for safe mode or BLE discovery mode
will display a solid yellow or blue for enough time to give feedback to the user.

Also, the two button-press intervals ran back to back and both polled the button by
level, so a click during the yellow flash was still held down when the
discovery interval started -- it entered discovery mode and erased bonding
unasked. The discovery interval now requires a release before a press
counts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dhalbert
dhalbert requested a review from tannewt August 23, 2026 18:04
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