Merged
Conversation
…olling - Replace AUX8 on/off strobe with AUX7 3-position switch: ~1100 = off, ~1400 = low (80), ~1900 = full (255) - Strobe bypasses current limiter for maximum output on battery - Shorter attack/decay ramp (4-frame cycle, 25 Hz at 100 FPS) - Replace rainbow show cycle with rainbow ripple for armed mode - MSP loop sleep reduced from 100ms to 10ms for faster response - STATUS timeout 30ms, RC timeout 20ms, RC polled every tick - Clear aux_strobe on FC disconnect to prevent stuck strobe - Always write strobe state on each RC poll (not just transitions)
- AUX8 momentary switch (>1800) overrides AUX7 to full strobe (255) - Skip first 3 RC polls to avoid garbage values triggering strobe at boot - Add Flutter BLE integration guide (FLUTTER_BLE_GUIDE.md)
- Merge arming forbidden/allowed into single continuous fc_pulse (50% floor) so the breathing curve is uninterrupted when arming state changes - Suppress strobe for first 10s after boot to avoid garbage RC triggers - Write full 200-LED buffer every frame, clearing tail beyond num_leds so BLE num_leds changes immediately turn off unused LEDs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BLE Nordic UART Service, AUX strobe, and armed mode improvements
Branch: ble → main
Summary
advertises as "AirLED", supports all LED parameters (brightness, color mode,
animation, color balance, etc.)
for full-blast Lichthupe
with smooth phase continuity
app development
Changes
File: src/ble.rs
Description: New: BLE protocol layer — Command/Response enums, serde JSON,
command handler, unit tests
────────────────────────────────────────
File: src/lib.rs
Description: Add pub mod ble
────────────────────────────────────────
File: src/state.rs
Description: Add BLE_FLASH + STATE_CHANGED signals, aux_strobe: u8 field
────────────────────────────────────────
File: src/msp.rs
Description: Add MSP_RC constant, parse_rc_channels() for AUX channel reading
────────────────────────────────────────
File: src/bin/main.rs
Description: BLE task (GATT server, chunked notifications, state push), AUX
strobe, RC polling at ~10ms, armed ripple, full-buffer LED writes
────────────────────────────────────────
File: Cargo.toml
Description: Add serde, serde-json-core, futures; enable heapless/serde
────────────────────────────────────────
File: FLUTTER_BLE_GUIDE.md
Description: Complete protocol reference for Flutter app development
────────────────────────────────────────
File: CHANGELOG.md
Description: Document BLE NUS integration
Test plan