How builty/tonexonecontroller works
This is ESP32-S3 firmware for a multi-input controller and display for TONEX and Valeton pedals. The main workflow is that a user selects a preset or changes parameters through a supported control surface; firmware translates the action to pedal control and presents the current state. README documents the input and pedal capabilities, while the sampled main.c shows the firmware’s subsystem references. Most feature-specific implementations were not sampled, so some documented connections are dashed and unverified.
Main entry points: main.c Application firmware · main Preset and parameter control · blemidi.c Bluetooth MIDI · midi_host.c USB MIDI host
Components 19
Firmware and control
- Application firmware
source/main/main.c - Preset and parameter control
source/main - TONEX parameters
source/main - Valeton parameters
source/main
Display and input
- Touchscreen UI
source/main - LVGL graphics
source/components/lvgl__lvgl/lvgl.h - Wired footswitches
source/main - WiFi configuration
source/main
MIDI connectivity
- Bluetooth MIDI
minimidi/source/components/blemidi/blemidi.c - Serial MIDI
source/main - USB MIDI host
source/components/usb_host_midi/midi_host.c - USB CDC ACM
source/components/espressif__usb_host_cdc_acm/cdc_acm_host.c
Hardware interfaces
- GPIO and I2C hardware
source/main/main.c
Other components
- Controller user
- TONEX pedal
- Valeton GP5
- Footswitch hardware
- Bluetooth controller
- MIDI controller or phone
Connections 23
- Controller user → Touchscreen UI: selects presets
README.md - Controller user → Wired footswitches: switches presets
README.md - Controller user → WiFi configuration: configures over WiFi
README.md - Footswitch hardware → Wired footswitches: signals presses
README.md - Bluetooth controller → Bluetooth MIDI: sends MIDI
README.md - MIDI controller or phone → Serial MIDI: sends programs
README.md - Touchscreen UI → LVGL graphics: uses graphics
source/main/main.c - Application firmware → Touchscreen UI: initializes
source/main/main.c - Application firmware → Wired footswitches: initializes
source/main/main.c - Application firmware → WiFi configuration: initializes
source/main/main.c - Application firmware → Preset and parameter control: dispatches control
source/main/main.c - Application firmware → TONEX parameters: uses parameters
source/main/main.c - Application firmware → Valeton parameters: uses parameters
source/main/main.c - Application firmware → Serial MIDI: initializes
source/main/main.c - Application firmware → GPIO and I2C hardware: configures hardware
source/main/main.c - Preset and parameter control → TONEX pedal: controls presets
README.md - Preset and parameter control → Valeton GP5: controls presets
README.md - TONEX parameters → TONEX pedal: controls parameters
README.md - Valeton parameters → Valeton GP5: controls parameters
README.md - Bluetooth MIDI → Preset and parameter control: switches presets
README.md - Serial MIDI → Preset and parameter control: selects programs
README.md - USB MIDI host → TONEX pedal: controls pedal
README.md - USB CDC ACM → Application firmware: provides USB transport