C# Class GHIElectronics.UAP.Drivers.PCA9685

Datei anzeigen Open project: amykatenicho/IoTWorkshop Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetAddress ( bool a0, bool a1, bool a2, bool a3, bool a4, bool a5 ) : byte
PCA9685 ( Windows.Devices.I2c.I2cDevice device ) : System
PCA9685 ( Windows.Devices.I2c.I2cDevice device, Windows.Devices.Gpio.GpioPin outputEnable ) : System
SetChannel ( int channel, ushort on, ushort off ) : void
SetDutyCycle ( int channel, double dutyCycle ) : void
TurnOff ( int channel ) : void
TurnOn ( int channel ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ReadRegister ( Register register ) : byte
WriteRegister ( Register register, byte value ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAddress() public static method

public static GetAddress ( bool a0, bool a1, bool a2, bool a3, bool a4, bool a5 ) : byte
a0 bool
a1 bool
a2 bool
a3 bool
a4 bool
a5 bool
return byte

PCA9685() public method

public PCA9685 ( Windows.Devices.I2c.I2cDevice device ) : System
device Windows.Devices.I2c.I2cDevice
return System

PCA9685() public method

public PCA9685 ( Windows.Devices.I2c.I2cDevice device, Windows.Devices.Gpio.GpioPin outputEnable ) : System
device Windows.Devices.I2c.I2cDevice
outputEnable Windows.Devices.Gpio.GpioPin
return System

SetChannel() public method

public SetChannel ( int channel, ushort on, ushort off ) : void
channel int
on ushort
off ushort
return void

SetDutyCycle() public method

public SetDutyCycle ( int channel, double dutyCycle ) : void
channel int
dutyCycle double
return void

TurnOff() public method

public TurnOff ( int channel ) : void
channel int
return void

TurnOn() public method

public TurnOn ( int channel ) : void
channel int
return void