How zxawry/esp_price_ticker works
esp_price_ticker is ESP32 firmware that periodically fetches currency-market prices and presents them on an SSD1306 display. On startup, the application initializes Wi-Fi, the display, and a circular market list; its HTTP task updates enabled markets while the display tasks show market status or a paginated settings menu. Buttons switch modes, navigate markets, toggle tracking, and pause rotation. The graph reflects the shown calls and README-documented fetch workflow; some task and HTTP wiring is omitted from the excerpts, so those links rely on the README.
Main entry points: app_main.c App tasks · app_http.c Trade fetcher · app_ctrl.c Market and menu views · app_disp.c SSD1306 driver
Components 12
Device runtime
- App tasks
main/app_main.c - Button events
main/app_main.c - Shared settings
main/app_comm.h
Market data
- Market list
main/app_ctrl.c - Trade fetcher
main/app_http.c
Display interface
- Market and menu views
main/app_ctrl.c - SSD1306 driver
main/app_disp.c - ASCII glyphs
main/app_font.c
Connectivity
- Wi-Fi station
main/app_wifi.c
Other components
- Device user
- Price API
- SSD1306 display
Connections 14
- Device user → Button events: presses
main/app_main.c - Button events → App tasks: queues events
main/app_main.c - App tasks → Market list: initializes list
main/app_main.c - App tasks → Trade fetcher: runs fetch task
README - Trade fetcher → Price API: requests trades
README - Trade fetcher → Market list: updates prices
main/app_http.c - App tasks → Wi-Fi station: initializes station
main/app_main.c - App tasks → Market and menu views: renders modes
main/app_main.c - Market and menu views → Market list: reads market state
main/app_ctrl.c - Market and menu views → SSD1306 driver: writes display
main/app_ctrl.c - SSD1306 driver → ASCII glyphs: uses glyphs
main/app_disp.c - SSD1306 driver → SSD1306 display: transmits over I2C
main/app_disp.c - App tasks → Shared settings: uses configuration
main/app_main.c - Trade fetcher → Shared settings: uses market fields
main/app_http.c