Pca9685 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
PCA9685 PWM LED/servo controller
public class Pca9685 : IDisposable
type Pca9685 = class
interface IDisposable
Public Class Pca9685
Implements IDisposable
- Inheritance
-
Pca9685
- Implements
Constructors
Pca9685(I2cDevice, Double, Double, Boolean) |
Constructs Pca9685 instance |
Fields
I2cAddressBase |
I2C address base. Equal to actual address when all selectable address bits are equal to 0. |
Properties
ClockFrequency |
Get clock frequency (Hz). Only set if you are using external clock. |
Prescale |
Set PWM frequency using prescale value or get the value. |
PwmFrequency |
Set PWM frequency or get effective value. |
Methods
CreatePwmChannel(Int32) |
Creates PwmChannel instance from selected channel |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
GetDutyCycle(Int32) |
Gets duty cycle on specified channel |
SetDutyCycle(Int32, Double) |
Sets duty cycle on specified channel. |
SetDutyCycleAllChannels(Double) |
Sets duty cycles on all channels |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for