Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Public Member Functions | List of all members
modules::buttons::Buttons Class Reference

A model of the 3 buttons on the MMU unit. More...

#include <buttons.h>

Public Member Functions

void Step ()
 Performs one step of the state machine - reads the ADC, processes debouncing, updates states of individual buttons.
 
bool ButtonPressed (uint8_t index) const
 
bool AnyButtonPressed () const
 

Detailed Description

A model of the 3 buttons on the MMU unit.

Member Function Documentation

◆ AnyButtonPressed()

bool modules::buttons::Buttons::AnyButtonPressed ( ) const
inline
Returns
true if any of the button is pressed

◆ ButtonPressed()

bool modules::buttons::Buttons::ButtonPressed ( uint8_t  index) const
inline
Returns
true if button at index is pressed
Parameters
indexof the button to check

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