#include "ButtonsCommanderAnalogPushesItem.hpp"
This class describes a push item part of a ButtonsCommanderAnalogPushes class.
ButtonsCommanderAnalogPushesItem::ButtonsCommanderAnalogPushesItem |
( |
unsigned long |
inId = 0 | ) |
|
|
inline |
Default constructor.
- Parameters
-
void ButtonsCommanderAnalogPushesItem::begin |
( |
unsigned long |
inId, |
|
|
int |
inAnalogValue, |
|
|
int |
inTolerancy |
|
) |
| |
|
inline |
Initialize the instance.
- Parameters
-
inId | id of this button. |
inAnalogValue | Analog value associated with this button. |
inTolerancy | tolerance of the read analog value to identify this push button. |
int ButtonsCommanderAnalogPushesItem::GetAnalogValue |
( |
| ) |
|
|
inline |
Gets the reference analog value for this button.
bool ButtonsCommanderAnalogPushesItem::IsPushed |
( |
int |
inCurrentValue | ) |
|
Checks if the given value is in the interval [value-tolerance , value+tolerance].
- Parameters
-
inCurrentValue | value to check. |
- Returns
- true in the given value is in the interval.
The documentation for this class was generated from the following files:
- D:/Mes documents/Trusty/Arduino/Libraries/Commanders/src/ButtonsCommanderAnalogPushesItem.hpp
- D:/Mes documents/Trusty/Arduino/Libraries/Commanders/src/ButtonsCommanderAnalogPushesItem.cpp