How joonasheiskanen/elektroniikan_sovellusprojekti_huppi works
This is an Arduino-based energy and indoor-environment display. The principal workflow is the firmware loop: initialize hardware and network/time services, refresh price, weather, and sensor data, then select a screen and update its presentation. Buttons switch display state; the UI composes readings and price summaries into LCD drawing calls. The graph preserves these distinct acquisition, control, and rendering stages. The README gives no capability detail, and several acquisition implementations were not excerpted, so external API and device relationships are not inferred.
Main entry points: main.cpp Main loop · ui.cpp UI updates · lcd.cpp LCD renderer · buttons.cpp Button controls
Components 12
Firmware control
- Main loop
huppiproject/src/main.cpp - Button controls
huppiproject/src/buttons.cpp
Data acquisition
- Network status
huppiproject/src/network.cpp - Time utilities
huppiproject/src/timeutils.cpp - Spot prices
huppiproject/src/spotprice.cpp - Weather data
huppiproject/src/weather.cpp - DHT readings
huppiproject/src/dht.cpp - CO₂ readings
huppiproject/src/scd.cpp
Screen presentation
- UI updates
huppiproject/src/ui.cpp - LCD renderer
huppiproject/src/lcd.cpp
Display assets
- Font assets
huppiproject/data
Other components
- TFT display
Connections 24
- Main loop → Button controls: checks buttons
huppiproject/src/main.cpp - Main loop → Network status: updates network
huppiproject/src/main.cpp - Main loop → Time utilities: initializes time
huppiproject/src/main.cpp - Main loop → Spot prices: fetches prices
huppiproject/src/main.cpp - Main loop → Weather data: updates weather
huppiproject/src/main.cpp - Main loop → DHT readings: updates readings
huppiproject/src/main.cpp - Main loop → CO₂ readings: updates readings
huppiproject/src/main.cpp - Main loop → UI updates: requests updates
huppiproject/src/main.cpp - Main loop → Time utilities: reads time
huppiproject/src/main.cpp - Button controls → LCD renderer: sets brightness
huppiproject/src/buttons.cpp - UI updates → Time utilities: reads time
huppiproject/src/ui.cpp - UI updates → Spot prices: reads prices
huppiproject/src/ui.cpp - UI updates → Weather data: reads weather
huppiproject/src/ui.cpp - UI updates → Network status: checks status
huppiproject/src/ui.cpp - UI updates → DHT readings: reads readings
huppiproject/src/ui.cpp - UI updates → CO₂ readings: reads readings
huppiproject/src/ui.cpp - UI updates → Button controls: reads screen state
huppiproject/src/ui.cpp - UI updates → LCD renderer: draws screen
huppiproject/src/ui.cpp - LCD renderer → Weather data: reads weather
huppiproject/src/lcd.cpp - LCD renderer → Spot prices: reads prices
huppiproject/src/lcd.cpp - LCD renderer → Time utilities: reads time
huppiproject/src/lcd.cpp - LCD renderer → Button controls: reads brightness
huppiproject/src/lcd.cpp - LCD renderer → Font assets: loads fonts
huppiproject/src/lcd.cpp - LCD renderer → TFT display: draws output
huppiproject/src/lcd.cpp