|
Treehopper C# API
|
Built-in hardware PWM channels. More...
Public Member Functions | |
| Task | DisablePwmAsync () |
| Disables the PWM functionality More... | |
| Task | EnablePwmAsync () |
| Enable the PWM functionality More... | |
| override string | ToString () |
| Returns this PWM channel's data in an easy-to-read format More... | |
Properties | |
| bool | Enabled [get, set] |
| Gets or sets the value determining whether the PWM functionality of the pin is enabled. More... | |
| double | DutyCycle [get, set] |
| Get or set the duty cycle (0-1) of the pin More... | |
| double | PulseWidth [get, set] |
| Get or set the pulse width, in microseconds, of the pin More... | |
Built-in hardware PWM channels.
Treehopper has three 16-bit hardware PWM channels labeled PWM1, PWM2, and PWM3. Like all peripherals, these are accessible from the TreehopperUsb instance.
| Task DisablePwmAsync | ( | ) |
Disables the PWM functionality
Implements Pwm.
| Task EnablePwmAsync | ( | ) |
Enable the PWM functionality
///
Implements Pwm.
| override string ToString | ( | ) |
Returns this PWM channel's data in an easy-to-read format
|
getset |
Gets or sets the value determining whether the PWM functionality of the pin is enabled.
|
getset |
Get or set the duty cycle (0-1) of the pin
|
getset |
Get or set the pulse width, in microseconds, of the pin