|
Treehopper C# API
|
PCA9685 pin More...
Public Member Functions | |
| Task | EnablePwmAsync () |
| Enable the PWM functionality More... | |
| Task | DisablePwmAsync () |
| Disables the PWM functionality More... | |
Properties | |
| double | DutyCycle [get, set] |
| Gets or sets the duty cycle of this pin More... | |
| bool | Enabled [get, set] |
| Whether the PWM pin is enabled. More... | |
| double | PulseWidth [get, set] |
| Gets or sets the pulse width, in microseconds. More... | |
PCA9685 pin
| Task EnablePwmAsync | ( | ) |
Enable the PWM functionality
///
Implements Pwm.
| Task DisablePwmAsync | ( | ) |
Disables the PWM functionality
Implements Pwm.
|
getset |
Gets or sets the duty cycle of this pin
|
getset |
Whether the PWM pin is enabled.
Writes to this value are ignored, and will always read as "true"
|
getset |
Gets or sets the pulse width, in microseconds.
This property will read the Pca9685.Frequency of the driver and change the DutyCycle property of this pin to set the desired pulse width. The accuracy of this property is dependent on the oscillator source; the PCA9685 internal oscillator is not nearly as accurate as an external crystal oscillator, so if you need accurate pulse width control, consider using an external oscillator.