From 58a0b5fd115d9687a1292e5e82e6b9fa8454b930 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 May 2026 01:44:11 +0530 Subject: 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) --- main/touch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'main/touch.h') 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 { esp_err_t touch_init(void); bool touch_read(touch_point_t *pt); void touch_deinit(void); +void touch_set_rotation(int rotation); void touch_parse_raw(const uint8_t *data, touch_point_t *pt); -- cgit v1.2.3