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

Platform-independent hardware pin configuration. More...

#include <config.h>

Public Attributes

uint8_t numProfiles
 Number of active profiles (1..MAX_PROFILES)
 
uint8_t numSelectLeds
 Profile-select LEDs wired; caps profiles at 2^n − 1.
 
uint8_t numButtons
 Action buttons wired (1..26, A–Z)
 
uint8_t ledBluetooth
 Bluetooth status LED pin.
 
uint8_t ledPower
 Power indicator LED pin.
 
uint8_t ledSelect [6]
 Profile-select LED pins (up to 6)
 
uint8_t buttonSelect
 Profile-cycle button pin.
 
uint8_t buttonPins [26]
 Action button pins: index 0 = A, 1 = B, ..., 25 = Z.
 

Detailed Description

Platform-independent hardware pin configuration.

Uses uint8_t for pin numbers so this header compiles on any Arduino target without pulling in ESP-IDF or platform-specific headers. Each hardware package provides its own config.cpp with the concrete pin assignments for that board.

Runtime active counts (numProfiles, numSelectLeds, numButtons) control loop bounds throughout the firmware. The compile-time ceilings in ProfileManager and Profile determine array sizes only.

Definition at line 17 of file config.h.

Member Data Documentation

◆ buttonPins

uint8_t HardwareConfig::buttonPins[26]

Action button pins: index 0 = A, 1 = B, ..., 25 = Z.

Definition at line 30 of file config.h.

◆ buttonSelect

uint8_t HardwareConfig::buttonSelect

Profile-cycle button pin.

Definition at line 29 of file config.h.

◆ ledBluetooth

uint8_t HardwareConfig::ledBluetooth

Bluetooth status LED pin.

Definition at line 24 of file config.h.

◆ ledPower

uint8_t HardwareConfig::ledPower

Power indicator LED pin.

Definition at line 25 of file config.h.

◆ ledSelect

uint8_t HardwareConfig::ledSelect[6]

Profile-select LED pins (up to 6)

Definition at line 26 of file config.h.

◆ numButtons

uint8_t HardwareConfig::numButtons

Action buttons wired (1..26, A–Z)

Definition at line 21 of file config.h.

◆ numProfiles

uint8_t HardwareConfig::numProfiles

Number of active profiles (1..MAX_PROFILES)

Definition at line 19 of file config.h.

◆ numSelectLeds

uint8_t HardwareConfig::numSelectLeds

Profile-select LEDs wired; caps profiles at 2^n − 1.

Definition at line 20 of file config.h.


The documentation for this struct was generated from the following file: