Skip to content

Conversation

@obra
Copy link
Member

@obra obra commented Aug 19, 2025

Summary

  • Reduce PreonicBootGreeting duration from 10s to 5s for cleaner boot sequence
  • Fix LED indicator priority system to prevent conflicts between USB and Bluetooth events
  • Improve Bluetooth disconnect animation with darker color and longer fade

Changes Made

PreonicBootGreeting Timing (1bca5c9)

  • Changed timing from (1s fade in + 8s flapping + 1s fade out) to (2s fade in + 1s hold + 2s fade out)
  • Total duration reduced from 10 seconds to 5 seconds
  • Maintains smooth rainbow fade without flapping animation

LED Indicator Priority System (0e11f0b)

  • Fixed core issue: USB events now properly take precedence over Bluetooth events
  • Added 500ms delay to USB disconnect orange shrink effect
  • Bluetooth indicators properly wait for USB sequences to complete before showing
  • Added showGlobalIndicatorWithDelay() function for delayed global effects
  • Individual Bluetooth indicators no longer inappropriately override USB global indicators

Bluetooth Disconnect Animation (083ad74)

  • Use dimmer blue color (30% brightness: {0, 0, 76} vs {0, 0, 255})
  • Increased duration from 5 seconds to 8 seconds for longer, more subtle fade
  • Creates gentler visual feedback for disconnection events

Issues Resolved

  1. Boot sequence conflicts: Rainbow boot greeting and Bluetooth indicators no longer interfere
  2. Dark LED slots: Bluetooth indicators properly show instead of staying dark during transitions
  3. Priority conflicts: Bluetooth disconnect no longer overrides USB connect green indicators
  4. Harsh animations: Bluetooth disconnect now uses softer, longer-lasting visual feedback

Test Plan

  • Boot without USB connection - rainbow greeting shows cleanly for 5s, then Bluetooth indicators can appear
  • USB disconnect - orange shrink effect shows on all LEDs with 500ms delay
  • USB connect while Bluetooth active - green immediately overrides Bluetooth indicators on all LEDs
  • Bluetooth disconnect - dimmer blue fade over 8 seconds on assigned slot only

🤖 Generated with Claude Code

obra and others added 4 commits August 19, 2025 16:23
Changes timing from (1s fade in + 8s flapping + 1s fade out) to
(2s fade in + 1s hold + 2s fade out) for cleaner interaction
with LED indicators during boot sequence.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Changes:
- USB events (global indicators) now always take precedence over Bluetooth events
- Added 500ms delay to USB disconnect orange shrink effect
- Bluetooth indicators properly wait for USB events to complete before showing
- Added showGlobalIndicatorWithDelay() function for delayed global effects
- Individual indicators no longer override USB global indicators inappropriately

This resolves issues where:
1. Bluetooth indicators would interfere with USB disconnect sequences
2. Bluetooth slots would stay dark during transitions
3. Bluetooth disconnect would override USB connect indicators

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Changes:
- Use dimmer blue color (30% brightness: {0, 0, 76} vs {0, 0, 255})
- Increase duration from 5 seconds to 8 seconds for longer fade
- Creates a more subtle, gentle disconnect indication

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@obra obra force-pushed the f/nrf52-usb-detect branch from aea1d9e to 9aa7c55 Compare August 19, 2025 23:24
@obra obra merged commit 223c9b4 into master Aug 19, 2025
15 checks passed
@obra obra deleted the f/nrf52-usb-detect branch August 19, 2025 23:36
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