Boboter
Loading...
Searching...
No Matches
Device::Buttons Class Reference

#include <buttons.h>

Public Member Functions

 Buttons (Robot &robot)
 ~Buttons ()
void initialize ()
 Sets up the neccessary GPIO pins.
void update_button_states ()
 Updates the button states with the current hardware states.
bool get_button_state_primary () const
 Gets the state of the primary button.
bool get_button_state_secondary () const
 Gets the state of the secondary button.

Constructor & Destructor Documentation

◆ Buttons()

Device::Buttons::Buttons ( Robot & robot)
explicit

◆ ~Buttons()

Device::Buttons::~Buttons ( )

Member Function Documentation

◆ get_button_state_primary()

bool Device::Buttons::get_button_state_primary ( ) const
inline

Gets the state of the primary button.

◆ get_button_state_secondary()

bool Device::Buttons::get_button_state_secondary ( ) const
inline

Gets the state of the secondary button.

◆ initialize()

void Device::Buttons::initialize ( )

Sets up the neccessary GPIO pins.

◆ update_button_states()

void Device::Buttons::update_button_states ( )

Updates the button states with the current hardware states.


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