How atwodots/minios-esp works
MiniOS-ESP is a FreeRTOS-based command-line OS for microcontrollers, with serial input and an ST7789 display. Its main workflow is serial input into the shell, command handling, then application services such as file, network, time, and calculator operations. Kernel processes and hardware drivers support that workflow; settings, themes, graphing, and screensavers provide distinct user-facing capabilities. Several application implementations were not sampled, so those capability links rely on the README rather than inspected calls.
Main entry points: commands.cpp Command handling · display.cpp Display rendering · settings.cpp Interactive settings · network.cpp WiFi and HTTP
Components 22
Kernel and shell
- System startup
src/kernel/main.cpp - Process kernel
src/kernel/kernel.cpp - Command shell
src/coresys/shell.cpp - Command handling
src/coresys/commands.cpp
User services
- File management
src/drivers/filesystem.cpp - WiFi and HTTP
src/drivers/network.cpp - Time and alarms
src/apps/misc/timeutils.cpp - Expression calculator
src/apps/tools/calc.cpp - Function graphing
src/apps/misc/grapher.cpp - Interactive settings
src/apps/tools/settings.cpp - Games
src/apps/games - Mirror utility
src/apps/misc/mirror.cpp
Drivers and display
- Display rendering
src/drivers/display.cpp - ST7789 driver
lib/Adafruit_ST7789/Adafruit_ST7789.cpp
System configuration
- Theme system
src/coresys/theme.cpp - Persistent configuration
src/coresys/config.cpp - Wallpaper system
src/coresys/wallpaper.cpp
Other components
- Terminal user
- Serial interface
- SPIFFS storage
- WiFi network
- NTP service
Connections 26
- Terminal user → Serial interface: enters commands
- Serial interface → Command shell: provides input
- System startup → Display rendering: initializes
src/kernel/main.cpp - System startup → Process kernel: initializes
src/kernel/main.cpp - System startup → Command shell: starts process
src/kernel/main.cpp - Command shell → Command handling: dispatches commands
- Command handling → File management: handles file commands
- Command handling → WiFi and HTTP: handles network commands
- Command handling → Time and alarms: handles time commands
- Command handling → Expression calculator: handles calculations
- Command handling → Function graphing: offers graphing
- Command handling → Interactive settings: offers settings
- Command handling → Games: offers games
- Command handling → Mirror utility: offers mirror utility
- File management → SPIFFS storage: reads and writes
- WiFi and HTTP → WiFi network: connects
- WiFi and HTTP → NTP service: synchronizes time
- Interactive settings → WiFi and HTTP: controls WiFi
src/apps/tools/settings.cpp - Interactive settings → Theme system: selects theme
src/apps/tools/settings.cpp - Interactive settings → Persistent configuration: reads device settings
src/apps/tools/settings.cpp - Theme system → Persistent configuration: persists selection
- Display rendering → Theme system: reads theme
src/drivers/display.cpp - Display rendering → Wallpaper system: draws wallpaper
src/drivers/display.cpp - Display rendering → ST7789 driver: renders through
- Display rendering → Serial interface: mirrors output
src/drivers/display.cpp - Time and alarms → NTP service: synchronizes