Setter class that sets its value to an analog output pin.
More...
#include <AnalogSetter.h>
Setter class that sets its value to an analog output pin.
- Author
- Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)
◆ AnalogSetter()
AnalogSetter::AnalogSetter |
( |
uint8_t |
pin | ) |
|
◆ input()
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
- Parameters
-
Reimplemented from Setter.
Referenced by failsafe().
◆ setPin()
void AnalogSetter::setPin |
( |
uint8_t |
pin | ) |
|
Set or change the output pin
- Parameters
-
[in] | pin | The Arduino pin to use for output |
The documentation for this class was generated from the following files: