AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
nrf52840/include/button_controller.h
Go to the documentation of this file.
1#pragma once
3#include <Arduino.h>
4
12{
13public:
18 explicit ButtonController(uint8_t pin);
19
23 void setup() override;
24
29 bool read() override;
30
31private:
32 uint8_t pin;
33};
ESP32-specific implementation of IButtonController interface.
ButtonController(uint8_t pin)
Constructs a ButtonController for a specific pin.
void setup() override
Initializes the pin as input with pull-up.
bool read() override
Reads the current button state.
Interface for button input functionality.