Built-in hardware PWM channels.
More...
#include <HardwarePwm.h>
- Note
- Treehopper has two types of PWM support — Hardware and Software PWM. For information on software PWM functionality, visit Treehopper.Pin.
Treehopper has three 16-bit hardware PWM channels labeled PWM1, PWM2, and PWM3. Like all peripherals, these are accessible from the TreehopperUsb instance.
◆ HardwarePwm()
◆ ~HardwarePwm()
◆ dutyCycle() [1/2]
virtual double dutyCycle |
( |
| ) |
|
|
inlinevirtualinherited |
◆ dutyCycle() [2/2]
virtual void dutyCycle |
( |
double |
value | ) |
|
|
inlinevirtualinherited |
◆ enabled() [1/2]
◆ enabled() [2/2]
void enabled |
( |
bool |
value | ) |
|
|
overridevirtual |
◆ pulseWidth() [1/2]
virtual double pulseWidth |
( |
| ) |
|
|
inlinevirtualinherited |
◆ pulseWidth() [2/2]
virtual void pulseWidth |
( |
double |
value | ) |
|
|
inlinevirtualinherited |
◆ HardwarePwmManager
The documentation for this class was generated from the following file: