Commanders
Arduino buttons/bus library
|
#include "ButtonsCommanderAnalogPushesItem.hpp"
Public Member Functions | |
ButtonsCommanderAnalogPushesItem (unsigned long inId = 0) | |
void | begin (unsigned long inId, int inAnalogValue, int inTolerancy) |
bool | IsPushed (int inCurrentValue) |
int | GetAnalogValue () |
![]() | |
ButtonsCommanderButton (unsigned long inId) | |
unsigned long | GetId () const |
virtual ButtonsCommanderButton * | GetFromId (unsigned long inId) |
virtual int | GetPosition () const |
virtual void | beforeFirstLoop () |
virtual unsigned long | loop () |
virtual void | EndLoop () |
void | SetNextButton (ButtonsCommanderButton *inpButton) |
ButtonsCommanderButton * | GetNextButton () const |
Additional Inherited Members | |
![]() | |
unsigned long | Id |
This class describes a push item part of a ButtonsCommanderAnalogPushes class.
Definition at line 12 of file ButtonsCommanderAnalogPushesItem.hpp.
|
inline |
Default constructor.
inId | id of this button. |
Definition at line 22 of file ButtonsCommanderAnalogPushesItem.hpp.
|
inline |
Initialize the instance.
inId | id of this button. |
inAnalogValue | Analog value associated with this button. |
inTolerancy | tolerance of the read analog value to identify this push button. |
Definition at line 29 of file ButtonsCommanderAnalogPushesItem.hpp.
|
inline |
Gets the reference analog value for this button.
Definition at line 36 of file ButtonsCommanderAnalogPushesItem.hpp.
bool ButtonsCommanderAnalogPushesItem::IsPushed | ( | int | inCurrentValue | ) |
Checks if the given value is in the interval [value-tolerance , value+tolerance].
inCurrentValue | value to check. |
Definition at line 11 of file ButtonsCommanderAnalogPushesItem.cpp.