47 virtual float put(
float value);
53 void write(
float value);
84 void write(
bool value);
87 void write(
float value);
A generic class representing a simple PWM output.
Definition PqOutputs.h:29
void rawWrite(int value)
Direclty writes raw value to the pin (bypasses mode and engine).
Definition PqOutputs.cpp:52
virtual void invert()
Inverts value by calling put(1-get()) (eg. 0.2 becomes 0.8).
Definition PqOutputs.h:50
virtual float put(float value)
Pushes value into the component and returns its (possibly filtered) value.
Definition PqOutputs.cpp:34
void write(float value)
Direclty writes value in [0, 1] to the pin (bypasses mode and engine).
Definition PqOutputs.cpp:47
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
A generic class representing a simple digital output.
Definition PqOutputs.h:63
void write(bool value)
Directly writes value to the pin (bypasses mode and engine).
Definition PqOutputs.cpp:81
void rawWrite(int value)
Directly writes HIGH or LOW value to the pin (bypasses mode and engine).
Definition PqOutputs.cpp:89
A digital source that contains a true/false value.
Definition PqCore.h:462
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
Superclass for pin-based components.
Definition PqCore.h:647
uint8_t pin() const
Returns the pin this component is attached to.
Definition PqCore.h:653
uint8_t mode() const
Returns the mode of the component.
Definition PqCore.h:656
Engine * engine() const
Returns the engine that owns this unit.
Definition PqCore.h:382