|
RCKit
|
Setter class that sets its value to an analog output pin. More...
#include <AnalogSetter.h>


Public Member Functions | |
| AnalogSetter (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. | |
Setter class that sets its value to an analog output pin.
DifferentialRCRx.pde, HBridge2RCRx.pde, HBridgeRCRx.pde, and TestSuite.pde.
| AnalogSetter::AnalogSetter | ( | uint8_t | pin | ) |
| [in] | pin | The pin number of the analog output to set |
| void AnalogSetter::input | ( | int | value | ) | [virtual] |
Input the value to be used to set the analog output Analog outputs are within the range 0 to 255 for 0.0 to 5.0 V On Duemilanove, output is PWM at approx 1kHz
| [in] | value | The input value |
Reimplemented from Setter.
Referenced by failsafe().
| void AnalogSetter::setPin | ( | uint8_t | pin | ) |
Set or change the output pin
| [in] | pin | The Arduino pin to use for output |
1.7.5.1