AwesomeStudioPedal
A programmable, multi-profile foot controller for DAWs, score readers, and studio automation
Loading...
Searching...
No Matches
IButtonController Class Referenceabstract

Interface for button input functionality. More...

#include <i_button_controller.h>

Inheritance diagram for IButtonController:
ButtonController ButtonController

Public Member Functions

virtual ~IButtonController ()=default
 
virtual void setup ()=0
 Initializes the button hardware.
 
virtual bool read ()=0
 Reads the current button state.
 

Detailed Description

Interface for button input functionality.

Abstract interface that defines the contract for button operations. Allows for hardware abstraction and dependency injection.

Definition at line 10 of file i_button_controller.h.

Constructor & Destructor Documentation

◆ ~IButtonController()

virtual IButtonController::~IButtonController ( )
virtualdefault

Member Function Documentation

◆ read()

virtual bool IButtonController::read ( )
pure virtual

Reads the current button state.

Returns
true if button is pressed, false otherwise

Implemented in ButtonController, and ButtonController.

◆ setup()

virtual void IButtonController::setup ( )
pure virtual

Initializes the button hardware.

Configures GPIO pins and any necessary hardware resources.

Implemented in ButtonController, and ButtonController.


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