Expand description
Pedalboard configuration types shared between CLI and firmware.
IMPORTANT: When changing Preset, ButtonConfig, EncoderConfig, AnalogConfig,
Action, or any type serialized into flash, bump PRESET_SCHEMA_VERSION below.
The firmware uses this to reject stale presets on boot.
Structs§
- Analog
Config - Button
Config - Config
- Device
Info - Device info returned by PE GET to resource 0x7D.
- Encoder
Config - Global
Config - System-wide configuration, independent of presets. Replaces OpenDeck global settings.
- Initial
State - Default toggle/radio/encoder state for a preset on first activation.
- LedConfig
- Listen
Cc - Reactive CC binding: maps incoming MIDI CC to LED ring visualization.
- Preset
- Trigger
- A trigger that reacts to incoming MIDI.
Enums§
- Action
- Button
Mode - Color
- Encoder
Action - LedAnimation
- LedRenderer
- Listen
Mode - How the LED ring reacts to incoming CC.
- System
Command - System command identifiers (body of PE Set to resource 0x7E).
- Trigger
Action - Action to perform when a trigger matches.
- Trigger
Match - Incoming MIDI message pattern to match.
Constants§
- DEVICE_
INFO_ RESOURCE - PE resource ID for device info (read-only, GET only).
- GLOBAL_
CONFIG_ RESOURCE - PE resource ID for global configuration (presets use 0x00..0x1F).
- MAX_
ACTIONS - MAX_
ANALOG - MAX_
BUTTONS - MAX_
CYCLE_ VALUES - MAX_
ENCODERS - MAX_
LABEL_ LEN - MAX_
PRESETS - MAX_
TRIGGERS - PRESET_
SCHEMA_ VERSION - Bump when any struct that is postcard-serialized into preset flash changes layout.
Must match
FORMAT_VERSIONinpedalboard-midi/src/preset_format.rs. - SYSTEM_
COMMAND_ RESOURCE - PE resource ID for system commands.
Type Aliases§
- Default
Config - Type alias for the default system configuration.
- Default
Initial State - Type alias for the default initial state.
- Default
Preset - Type alias for the default preset configuration (6 buttons, 2 encoders, 2 analog).
- Label