#include <DigitalSetter.h>
Public Member Functions | |
DigitalSetter (uint8_t pin) | |
void | setPin (uint8_t pin) |
virtual void | input (int value) |
virtual void | failsafe () |
Called when the source of input data is lost, and the Setter is required to fail in a safe way. |
DigitalSetter::DigitalSetter | ( | uint8_t | pin | ) |
[in] | pin | The pin number of the digital output to set Caller is expected to have set it as an output already |
References setPin().
void DigitalSetter::setPin | ( | uint8_t | pin | ) |
Set or change the output pin
[in] | pin | The Arduino pin to use for output |
Referenced by DigitalSetter().
void DigitalSetter::input | ( | int | value | ) | [virtual] |
Input the value to be used to set the analog output Digital outputs are 0 or 1 Inout 0 produces digital output of 0. All other values produce output of 1
[in] | value | The input 0 for off, all other values for on |
Reimplemented from Setter.
Referenced by failsafe().