AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
button_constants.h
Go to the documentation of this file.
1
#pragma once
2
#include <cstdint>
3
13
namespace
Btn
14
{
15
static
constexpr
uint8_t MAX = 26;
17
// Named index constants for convenience (A=0, B=1, …)
18
static
constexpr
uint8_t A = 0;
19
static
constexpr
uint8_t B = 1;
20
static
constexpr
uint8_t C = 2;
21
static
constexpr
uint8_t D = 3;
22
29
inline
void
name
(uint8_t index,
char
* buf)
30
{
31
buf[0] =
static_cast<
char
>
(
'A'
+ index);
32
buf[1] =
'\0'
;
33
}
34
}
// namespace Btn
Btn
Button helpers for pedal configuration.
Definition
button_constants.h:14
Btn::name
void name(uint8_t index, char *buf)
Write the letter name for a button index into buf.
Definition
button_constants.h:29
lib
PedalLogic
include
button_constants.h
Generated by
1.9.8