45 virtual float mapTo(
float toLow,
float toHigh) {
return mapFrom01(
get(), toLow, toHigh); }
52 virtual float put(
float value);
An analog analog source that contains a value constrained to a finite range (typically in [0,...
Definition PqCore.h:444
virtual float get()
Returns value in [0, 1].
Definition PqCore.h:452
The main Plaquette static class containing all the units.
Definition PqCore.h:60
static Engine & primary()
Returns the main instance of Plaquette.
Definition PqCore.cpp:31
Stream/serial output. Number of digits of precision is configurable.
Definition StreamOut.h:29
virtual float mapTo(float toLow, float toHigh)
Maps value to new range.
Definition StreamOut.h:45
virtual void precision(uint8_t digits)
Sets precision of the output.
Definition StreamOut.cpp:44
virtual float put(float value)
Pushes value into the unit.
Definition StreamOut.cpp:33
Engine * engine() const
Returns the engine that owns this unit.
Definition PqCore.h:382