How veasnacambo/atoms-smart-switch works
Atoms Smart Switch is an ESP-IDF retrofit-switch firmware with a stated goal of manual input, relay output, and local wireless control. The visible startup workflow initializes the relay, switch input, app logic, and Wi-Fi manager, then starts the web server; the sampled component implementations are stubs, so their runtime coordination is not established. The graph preserves the documented physical I/O capabilities, but does not infer connections between them and app logic or networking. Hardware is represented only by the repository’s hardware notes; no circuit implementation was sampled.
Main entry points: main.c Firmware startup · relay.c Relay output · switch_input.c Switch input · app_logic.c App logic
Components 8
Firmware runtime
- Firmware startup
firmware/main/main.c - App logic
firmware/components/app_logic/app_logic.c
Local connectivity
- Wi-Fi manager
firmware/components/wifi_manager/wifi_manager.c - Web server
firmware/components/web_server/web_server.c
Physical I/O
- Switch input
firmware/components/switch_input/switch_input.c - Relay output
firmware/components/relay/relay.c
Other components
- Manual switch
- Switched load
Connections 7
- Firmware startup → Relay output: initializes
firmware/main/main.c - Firmware startup → Switch input: initializes
firmware/main/main.c - Firmware startup → App logic: initializes
firmware/main/main.c - Firmware startup → Wi-Fi manager: initializes
firmware/main/main.c - Firmware startup → Web server: starts
firmware/main/main.c - Manual switch → Switch input: provides input
README.md - Relay output → Switched load: switches
README.md