feat: remote image control & keymap support#7
Merged
Conversation
Replace local UI interaction (choices, input, status) with chunked image display from server and scroll commands. Add hardware JPEG decoding via esp_new_jpeg component for efficient rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Convert char index to byte index in input_asr_result - Convert char index to byte index in delete_char_before_cursor - Use chars().count() instead of len() in move_cursor_right - This ensures proper handling of multi-byte UTF-8 characters Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Handle ping frames explicitly to avoid unsupported message warnings. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add key_action_to_ansi function to convert KeyAction to ANSI sequences - Add KeymapConfig constants for key names (KEY_MIC, KEY_CUSTOM, etc.) - Support custom key bindings for NEXT, SWITCH, ROTATE, and CUSTOM buttons - Add clear_nvs methods for Settings and KeymapConfig - Add factory reset via btn3 press on startup - Add keymap loading for remote control mode Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
795653a to
0dddd52
Compare
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.
Summary
Changes
src/app.rs: Addkey_action_to_ansifunction, support keymap for button eventssrc/bt_keyboard_mode.rs: Add key name constants andclear_nvsmethodsrc/main.rs: Add factory reset on btn3, improve error messagessrc/bt_wifi_mode.rs: Addclear_nvsmethodTest plan