diff options
| author | Your Name <you@example.com> | 2026-05-18 19:25:32 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 19:25:32 +0530 |
| commit | e1da6ffc0221abf4d0fb3a8c3e6be0b90d69397a (patch) | |
| tree | 3a0055b5af2bb09492c8c38fdf2712922ecc7123 /main/display.h | |
| parent | f0f8cca10196b265c3b453f71322239d2ecaf4ae (diff) | |
Implement full TollGate display UI
- BOOT screen: centered title + WiFi status line
- READY screen: QR cycling (WiFi/Portal), price, mint domain,
wallet balance (color-coded), client count
- PAYMENT screen: green banner 'ACCESS GRANTED', paid amount, time
- ERROR screen: red banner 'NO UPSTREAM', guidance, AP reassurance
- Enhanced display_update() API with mint_url, price, wifi_status
- Extract domain helper for clean mint URL display
- Render interval: 2s (reduced SPI load)
- Color palette: cyan, yellow, orange, green, red, dim gray
- WiFi events update display status and trigger ERROR state
- Board C now on /dev/ttyACM3
Diffstat (limited to 'main/display.h')
| -rw-r--r-- | main/display.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/display.h b/main/display.h index 407521b..1530e57 100644 --- a/main/display.h +++ b/main/display.h | |||
| @@ -20,7 +20,9 @@ typedef enum { | |||
| 20 | esp_err_t display_init(void); | 20 | esp_err_t display_init(void); |
| 21 | void display_set_state(display_state_t state); | 21 | void display_set_state(display_state_t state); |
| 22 | void display_update(const char *ap_ssid, int active_clients, | 22 | void display_update(const char *ap_ssid, int active_clients, |
| 23 | uint64_t wallet_balance, const char *portal_url); | 23 | uint64_t wallet_balance, const char *portal_url, |
| 24 | const char *mint_url, int price_per_step, | ||
| 25 | const char *wifi_status); | ||
| 24 | void display_render_text(int x, int y, const char *text, uint16_t fg, uint16_t bg, int scale); | 26 | void display_render_text(int x, int y, const char *text, uint16_t fg, uint16_t bg, int scale); |
| 25 | void display_render_qr(const char *text); | 27 | void display_render_qr(const char *text); |
| 26 | 28 | ||