C# Class GHIElectronics.UAP.Drivers.PCA9685

Afficher le fichier Open project: amykatenicho/IoTWorkshop Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
ReadRegister ( Register register ) : byte
WriteRegister ( Register register, byte value ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAddress() public static méthode

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
Résultat byte

PCA9685() public méthode

public PCA9685 ( Windows.Devices.I2c.I2cDevice device ) : System
device Windows.Devices.I2c.I2cDevice
Résultat System

PCA9685() public méthode

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

SetChannel() public méthode

public SetChannel ( int channel, ushort on, ushort off ) : void
channel int
on ushort
off ushort
Résultat void

SetDutyCycle() public méthode

public SetDutyCycle ( int channel, double dutyCycle ) : void
channel int
dutyCycle double
Résultat void

TurnOff() public méthode

public TurnOff ( int channel ) : void
channel int
Résultat void

TurnOn() public méthode

public TurnOn ( int channel ) : void
channel int
Résultat void