Arduino Universal Inputs
A collection of libraries for managing/processing input devices on Arduino.
|
Interface for a value transformation. More...
#include <IValueTransform.h>
Public Member Functions | |
IValueTransform (inputanalog_t fromLow, inputanalog_t fromHigh) | |
Create a new value transformation. More... | |
virtual inputanalog_t | transform (inputanalog_t raw) const =0 |
Perform the value transformation. More... | |
Protected Attributes | |
inputanalog_t | m_fromLow |
Lowest input value. | |
inputanalog_t | m_fromHigh |
Highest input value. | |
Interface for a value transformation.
|
inline |
Create a new value transformation.
fromLow | Lowest mapped inout value |
fromHigh | Highest mapped input value |
|
pure virtual |
Perform the value transformation.
raw | Value to transform |
Implemented in LinearTransform.