Skip to content

feat: remote image control & keymap support#7

Merged
L-jasmine merged 5 commits into
mainfrom
feat/img_remote_control
Apr 21, 2026
Merged

feat: remote image control & keymap support#7
L-jasmine merged 5 commits into
mainfrom
feat/img_remote_control

Conversation

@L-jasmine
Copy link
Copy Markdown
Collaborator

@L-jasmine L-jasmine commented Apr 21, 2026

Summary

  • Add remote image control mode
  • Add keymap support for remote control mode with ANSI conversion
  • Add key name constants to KeymapConfig
  • Support custom key bindings for hardware buttons
  • Add factory reset via button press on startup
  • Bump version to 0.2.0

Changes

  • src/app.rs: Add key_action_to_ansi function, support keymap for button events
  • src/bt_keyboard_mode.rs: Add key name constants and clear_nvs method
  • src/main.rs: Add factory reset on btn3, improve error messages
  • src/bt_wifi_mode.rs: Add clear_nvs method

Test plan

  • Test remote control mode with keymap configuration
  • Test factory reset (btn3 press on startup)
  • Test ANSI key sequences (Ctrl, Alt combos)

L-jasmine and others added 5 commits April 20, 2026 03:34
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>
@L-jasmine L-jasmine force-pushed the feat/img_remote_control branch from 795653a to 0dddd52 Compare April 21, 2026 17:29
@L-jasmine L-jasmine merged commit 2148c10 into main Apr 21, 2026
2 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.

1 participant