Pca9685(I2cDevice, Double, Double, Boolean) Constructor

Definition

Constructs Pca9685 instance

public Pca9685 (System.Device.I2c.I2cDevice i2cDevice, double pwmFrequency = -1, double dutyCycleAllChannels = -1, bool usingExternalClock = false);
new Iot.Device.Pwm.Pca9685 : System.Device.I2c.I2cDevice * double * double * bool -> Iot.Device.Pwm.Pca9685
Public Sub New (i2cDevice As I2cDevice, Optional pwmFrequency As Double = -1, Optional dutyCycleAllChannels As Double = -1, Optional usingExternalClock As Boolean = false)

Parameters

i2cDevice
I2cDevice

The I2C device to be used

pwmFrequency
Double

Initial PWM frequency on all channels

dutyCycleAllChannels
Double

Duty cycle set on all channels after constructing

usingExternalClock
Boolean

When true specifies that external clock is used. Use ClockFrequency to set frequency of an external clock

Remarks

Default value for pwmFrequency and dutyCycleAllChannels is -1 which means to not change value already set on the device.

Applies to