How willyancesar/redline-gauge works
REDLINE is ESP32 firmware for a motorsport digital dash. The principal workflow selects a data source, publishes vehicle readings, derives display state, and renders the themed gauge; users can configure the dash and time acceleration runs. The graph also preserves the documented simulator, OBD, sensor-input, settings, splash, and timer capabilities. Some source implementations were not sampled, so uncertain source-to-bus and timer-display links are dashed.
Main entry points: main.cpp Firmware runtime · gauge_bus.h Gauge data bus · gauge_ui.cpp Gauge renderer · custom_source.cpp Custom sensors
Components 20
Runtime orchestration
- Firmware runtime
src/main.cpp - Dash configuration
src/config.h - Gauge data bus
src/data/gauge_bus.h
Vehicle data sources
- Physics simulator
src/data/sim_source.cpp - OBD Bluetooth
src/data/obd_source.cpp - Serial input
src/data/serial_source.cpp - Custom sensors
src/data/custom_source.cpp - Honda K-line
src/data/honda_source.cpp - Sensor interface
src/gauge_input.h
Dash display
- Gauge model
src/ui/gauge_model.cpp - Gauge renderer
src/ui/gauge_ui.cpp - Screen canvas
src/ui/canvas.cpp - Color themes
src/ui/theme.cpp - Boot splash
src/ui/splash_ui.cpp
Settings and controls
- Settings screen
src/ui/settings_ui.cpp - Saved settings
src/settings.h - Touch calibration
src/ui/touch_cal_ui.cpp
Performance timer
- Drag timer
src/ui/drag_timer.cpp - Timer display
src/ui/timer_ui.cpp
Other components
- Driver
Connections 25
- Driver → Firmware runtime: uses dash
README.md - Firmware runtime → Physics simulator: selects and polls
src/main.cpp - Firmware runtime → OBD Bluetooth: selects and polls
src/main.cpp - Firmware runtime → Serial input: selects and polls
src/main.cpp - Firmware runtime → Custom sensors: selects and polls
src/main.cpp - Firmware runtime → Honda K-line: selects and polls
src/main.cpp - Physics simulator → Gauge data bus: publishes readings
src/data/sim_source.cpp - OBD Bluetooth → Gauge data bus: publishes readings
src/data/obd_source.cpp - Serial input → Gauge data bus: publishes readings
- Custom sensors → Gauge data bus: publishes readings
- Honda K-line → Gauge data bus: publishes readings
src/data/honda_source.cpp - Sensor interface → Custom sensors: feeds sensors
- Gauge data bus → Gauge model: supplies snapshots
- Gauge model → Gauge renderer: provides view
- Gauge renderer → Screen canvas: draws regions
src/ui/gauge_ui.cpp - Gauge renderer → Color themes: uses theme
src/ui/gauge_ui.cpp - Firmware runtime → Boot splash: shows at boot
- Driver → Settings screen: configures dash
README.md - Firmware runtime → Settings screen: routes settings
src/main.cpp - Settings screen → Saved settings: saves choices
README.md - Driver → Touch calibration: calibrates touch
README.md - Firmware runtime → Touch calibration: opens calibration
src/main.cpp - Firmware runtime → Drag timer: updates runs
src/main.cpp - Drag timer → Timer display: supplies timer state
- Driver → Timer display: views run results
README.md