AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
Btn Namespace Reference

Button helpers for pedal configuration. More...

Functions

void name (uint8_t index, char *buf)
 Write the letter name for a button index into buf.
 

Detailed Description

Button helpers for pedal configuration.

Buttons are identified by letter (A, B, C, … Z) everywhere: in JSON, in serial output, and in log lines.

Index 0 = A, 1 = B, ..., 25 = Z. The active count is set at runtime via hardwareConfig.numButtons.

Function Documentation

◆ name()

void Btn::name ( uint8_t  index,
char *  buf 
)
inline

Write the letter name for a button index into buf.

Parameters
indexButton index (0 = A, 1 = B, ..., 25 = Z)
bufOutput buffer — must be at least 2 bytes

Definition at line 29 of file button_constants.h.