mode control¶
The mode control binds to a particular mode in zcx and displays feedback indicating whether that mode is currently active
Note
Standard controls are already capable of changing modes, and mode controls still require you to manually define the mode change commands. The only purpose of this control is to enable LED feedback.
See command reference.
yaml schema¶
Inherits from standard control.
mode¶
string
The mode to bind to.
active_color, inactive_color¶
color definition
The color when the control's mode is active or inactive.
color¶
ignored
Feedback is based on whether the control's bound mode is active.
properties¶
These are values attached to controls that can be referenced from within template strings.
mode¶
The name of the bound mode.
Examples¶
Momentary¶
With latch¶
my_control:
type: mode
mode: shift
gestures:
pressed:
mode_on: shift
released:
mode_off: shift
double_clicked:
mode_on: shift
Double-click to keep the mode on then short press to turn it off again.