How alphazcc/mini-project works
This repository is the IMX6U-side Linux smart-home control panel. Its primary workflow initializes the LVGL display, accepts the ELF 1 device over TCP, decodes sensor frames for on-screen updates, and sends device-control commands in response to button interaction. A separate weather workflow requests Seniverse data, parses its JSON, and updates the UI. The graph preserves the documented UI assets and protocol stages; internal UI wiring beyond the sampled excerpts is left unasserted. (The ELF 1 firmware is not included.)
Main entry points: application.c Application coordinator · ui.c LVGL UI · weather.c Weather workflow · ui_ScreenMain.c Main screen
Components 17
Application runtime
- Linux LVGL entry
lvgl_demo/main.c - Application coordinator
lvgl_demo/app/application.c - Clock display
lvgl_demo/app/application.c - Device controls
lvgl_demo/app/button.c
Device communication
- TCP server
lvgl_demo/app/socket/tcp_server.c - Frame protocol
lvgl_demo/app/protocol/protocol.c
Weather service
- Weather workflow
lvgl_demo/app/weather.c - Weather TCP client
lvgl_demo/app/socket/tcp_client.c - cJSON parser
lvgl_demo/app/cJSON/cJSON.c
Panel presentation
- LVGL UI
lvgl_demo/ui/ui.c - Main screen
lvgl_demo/ui/screens/ui_ScreenMain.c - UI helpers
lvgl_demo/ui/ui_helpers.c - Image assets
lvgl_demo/ui/images - Panel font
lvgl_demo/ui/fonts/ui_font_Font1.c
Other components
- Panel operator
- ELF 1 device
- Seniverse API
Connections 21
- Panel operator → Linux LVGL entry: uses panel
README.md - Linux LVGL entry → LVGL UI: initializes
lvgl_demo/main.c - Linux LVGL entry → Application coordinator: starts
lvgl_demo/main.c - Application coordinator → TCP server: accepts connection
README.md - ELF 1 device → TCP server: sends frames
README.md - Application coordinator → Frame protocol: decodes frames
lvgl_demo/app/application.c - Application coordinator → LVGL UI: updates sensors
lvgl_demo/app/application.c - Application coordinator → Clock display: runs clock display
lvgl_demo/app/application.c - Clock display → LVGL UI: updates time
lvgl_demo/app/application.c - Panel operator → Device controls: presses controls
README.md - Device controls → Frame protocol: packages commands
README.md - Device controls → TCP server: sends commands
README.md - Application coordinator → Weather workflow: starts weather
lvgl_demo/app/application.c - Weather workflow → Weather TCP client: requests data
README.md - Weather TCP client → Seniverse API: fetches forecast
README.md - Weather workflow → cJSON parser: parses response
README.md - Weather workflow → LVGL UI: updates forecast
README.md - LVGL UI → Main screen: loads screen
- Main screen → Image assets: uses images
- Main screen → Panel font: uses font
- Main screen → UI helpers: uses helpers