How arnav-ahirrao/esp32-click-switch works
ESP32 Click Switch turns physical button clicks into Windows actions. The principal flow is button input, firmware event generation, USB serial reception, click-count dispatch, and keyboard or other Windows actions; holding the button keeps the window switcher open until release. The README also documents customizable app, lock, music, and slide actions. Firmware internals were not excerpted, so firmware behavior and its serial handoff are grounded in README statements rather than inspected implementation.
Main entry points: switch.py Event Dispatcher · click_switch.ino Click Firmware
Components 7
Device Input
- Click Firmware
firmware/click_switch/click_switch.ino
Windows Host
- USB Serial
software/switch.py - Event Dispatcher
software/switch.py
Action Execution
- Window Controls
software/switch.py - Custom Actions
software/switch.py
Other components
- Button User
- Windows
Connections 7
- Button User → Click Firmware: presses button
README.md - Click Firmware → USB Serial: sends events
README.md - USB Serial → Event Dispatcher: yields messages
software/switch.py - Event Dispatcher → Window Controls: invokes actions
software/switch.py - Event Dispatcher → Custom Actions: dispatches clicks
software/switch.py - Window Controls → Windows: sends keystrokes
software/switch.py - Custom Actions → Windows: runs actions
software/switch.py