diff options
| author | Your Name <you@example.com> | 2026-05-19 01:44:11 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 01:44:11 +0530 |
| commit | 58a0b5fd115d9687a1292e5e82e6b9fa8454b930 (patch) | |
| tree | dd9f18903d0237edcf5844c58fcb88bcf737b22c /main/touch.h | |
| parent | 699fc6c03899c3b1ff853d8c7c6cf32173436354 (diff) | |
Dynamic layout for WiFi setup: landscape rotation, responsive render, highlight feedback
- Render functions use axs15231b_get_width/height() instead of hardcoded coords
- render_wifi_setup_list: dynamic item widths, screen-relative cancel button
- render_wifi_setup_password: dynamic field/eye/keyboard from kb_get_layout()
- render_wifi_setup_result: centered on screen, dynamic button placement
- handle_wifi_setup_touch: matching dynamic hit areas, highlight_rect() feedback
- Rotation lifecycle: enter_wifi_setup_rotation/exit wired into all entry/exit paths
- display_enter_wifi_setup + READY/ERROR touch + SUCCESS auto-return + LIST cancel
- Added kb_result_t typedef to keyboard.h (was only in .c)
- Fixed test_keyboard.c: use computed offsets from kb_layout_t defaults
- All 101 unit tests pass (touch:19, keyboard:46, wifi_setup:36)
Diffstat (limited to 'main/touch.h')
| -rw-r--r-- | main/touch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/touch.h b/main/touch.h index a4a5aa4..b9e3ccd 100644 --- a/main/touch.h +++ b/main/touch.h | |||
| @@ -22,6 +22,7 @@ typedef struct { | |||
| 22 | esp_err_t touch_init(void); | 22 | esp_err_t touch_init(void); |
| 23 | bool touch_read(touch_point_t *pt); | 23 | bool touch_read(touch_point_t *pt); |
| 24 | void touch_deinit(void); | 24 | void touch_deinit(void); |
| 25 | void touch_set_rotation(int rotation); | ||
| 25 | 26 | ||
| 26 | void touch_parse_raw(const uint8_t *data, touch_point_t *pt); | 27 | void touch_parse_raw(const uint8_t *data, touch_point_t *pt); |
| 27 | 28 | ||