diff options
| author | Your Name <you@example.com> | 2026-05-19 04:21:14 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 04:21:14 +0530 |
| commit | aa58b47996083f36e3587b8e10f9bbb681610491 (patch) | |
| tree | 4c845da2ee4b217a2c77deea3b10dd8d288d1b09 /main/display.h | |
| parent | 9f7dd94029c8dc12117494548f5f32221a729307 (diff) | |
feat: web-based WiFi setup via captive portal, portrait-only display
- Remove touchscreen WiFi setup (touch.c, keyboard.c, wifi_setup.c from build)
- Remove offscreen buffer and landscape rotation from axs15231b driver
- Add /setup HTML page with WiFi scan/connect via captive portal
- Add /wifi/scan, /wifi/connect, /wifi/status HTTP endpoints
- Display shows SETUP_PENDING (QR + SSID + setup URL) when unconfigured
- Display shows ERROR with setup URL when upstream is down
- All 101 unit tests pass, builds and flashes to Board C
Diffstat (limited to 'main/display.h')
| -rw-r--r-- | main/display.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/display.h b/main/display.h index e8824b6..ecb76b6 100644 --- a/main/display.h +++ b/main/display.h | |||
| @@ -10,7 +10,7 @@ typedef enum { | |||
| 10 | DISPLAY_READY, | 10 | DISPLAY_READY, |
| 11 | DISPLAY_PAYMENT_RECEIVED, | 11 | DISPLAY_PAYMENT_RECEIVED, |
| 12 | DISPLAY_ERROR, | 12 | DISPLAY_ERROR, |
| 13 | DISPLAY_WIFI_SETUP | 13 | DISPLAY_SETUP_PENDING |
| 14 | } display_state_t; | 14 | } display_state_t; |
| 15 | 15 | ||
| 16 | typedef enum { | 16 | typedef enum { |
| @@ -27,7 +27,6 @@ void display_update(const char *ap_ssid, int active_clients, | |||
| 27 | void display_notify_payment(int amount_sats, int64_t allotment_ms); | 27 | void display_notify_payment(int amount_sats, int64_t allotment_ms); |
| 28 | void display_notify_wifi_connected(const char *ip); | 28 | void display_notify_wifi_connected(const char *ip); |
| 29 | void display_notify_wifi_disconnected(void); | 29 | void display_notify_wifi_disconnected(void); |
| 30 | void display_enter_wifi_setup(void); | ||
| 31 | void display_render_text(int x, int y, const char *text, uint16_t fg, uint16_t bg, int scale); | 30 | void display_render_text(int x, int y, const char *text, uint16_t fg, uint16_t bg, int scale); |
| 32 | void display_render_qr(const char *text); | 31 | void display_render_qr(const char *text); |
| 33 | 32 | ||