load adjustor that uses analogWrite() to adjust a PWMable load
More...
#include <LoadAdjustAnalogWrite.h>
load adjustor that uses analogWrite() to adjust a PWMable load
◆ LoadAdjustAnalogWrite()
LoadAdjustAnalogWrite::LoadAdjustAnalogWrite |
( |
byte |
_pin, |
|
|
bool |
_invert = false |
|
) |
| |
|
inline |
load adjustor that uses analogWrite() to adjust a PWMable load
- Parameters
-
_pin | PWM capable pin to output signal to |
_invert | (default false) set true if the load decreases as the duty cycle increses |
◆ begin()
void LoadAdjustAnalogWrite::begin |
( |
| ) |
|
|
inlinevirtual |
◆ setLoad()
void LoadAdjustAnalogWrite::setLoad |
( |
float |
load | ) |
|
|
inlinevirtual |
set a new value for the adjustable load
- Parameters
-
load | between 0.0 and 1.0 where 1.0 is the highest load |
Implements LoadAdjust.
◆ invert
bool LoadAdjustAnalogWrite::invert |
◆ pin
byte LoadAdjustAnalogWrite::pin |
The documentation for this class was generated from the following file: