diff options
| author | Your Name <you@example.com> | 2026-05-18 19:58:12 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 19:58:12 +0530 |
| commit | 7820837d79ebc8e00221b5206bdd8e3ca0ae4c15 (patch) | |
| tree | 98070e83e4e8bfa0b46009d202e7b81410c960f6 /main/display.h | |
| parent | 7dd532cee475d486552e886dd7173c8853f80b60 (diff) | |
Sync display with live TollGate state
- Periodic refresh: wallet balance + client count every 5s from main loop
- display_notify_payment() API: passes payment amount and time allotment
- tollgate_api.c: triggers PAYMENT_RECEIVED state after wallet receive
- AP station events update client count in real-time
- Config data (price, mint) passed to display during boot phase
- Payment screen shows actual sats paid and time purchased
- Updated DISPLAY_UI_PLAN.md with state-sync audit and checklist
Diffstat (limited to 'main/display.h')
| -rw-r--r-- | main/display.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/display.h b/main/display.h index 1530e57..49b3ffd 100644 --- a/main/display.h +++ b/main/display.h | |||
| @@ -23,6 +23,7 @@ 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, | 24 | const char *mint_url, int price_per_step, |
| 25 | const char *wifi_status); | 25 | const char *wifi_status); |
| 26 | void display_notify_payment(int amount_sats, int64_t allotment_ms); | ||
| 26 | void display_render_text(int x, int y, const char *text, uint16_t fg, uint16_t bg, int scale); | 27 | void display_render_text(int x, int y, const char *text, uint16_t fg, uint16_t bg, int scale); |
| 27 | void display_render_qr(const char *text); | 28 | void display_render_qr(const char *text); |
| 28 | 29 | ||