C# Class CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin

Provides all 16 PWM channels provided by the PCA9685 I2C 12-bit PWM LED/Servo controller.
Inheritance: IPCA9685Pin
ファイルを表示 Open project: cyrusbuilt/MonoPi

Public Properties

Property Type Description
ALL IPCA9685Pin[]
PWM_00 IPCA9685Pin
PWM_01 IPCA9685Pin
PWM_02 IPCA9685Pin
PWM_03 IPCA9685Pin
PWM_04 IPCA9685Pin
PWM_05 IPCA9685Pin
PWM_06 IPCA9685Pin
PWM_07 IPCA9685Pin
PWM_08 IPCA9685Pin
PWM_09 IPCA9685Pin
PWM_10 IPCA9685Pin
PWM_11 IPCA9685Pin
PWM_12 IPCA9685Pin
PWM_13 IPCA9685Pin
PWM_14 IPCA9685Pin
PWM_15 IPCA9685Pin

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin. The Dispose method leaves the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin was occupying.

PCA9685Pin ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class. This is the default constructor.

PCA9685Pin ( Int32 address ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class with the address of the pin.

PCA9685Pin ( Int32 address, String name ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class with the address and name of the pin.

PCA9685Pin ( String provider, Int32 address, String name ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class

ToString ( ) : String

Returns a System.String that represents the current CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin.

Private Methods

Method Description
CreatePwmPin ( Int32 channel, String name ) : IPCA9685Pin

Factory method for creating instances of this class.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin. The Dispose method leaves the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin was occupying.
public Dispose ( ) : void
return void

PCA9685Pin() public method

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class. This is the default constructor.
public PCA9685Pin ( ) : System
return System

PCA9685Pin() public method

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class with the address of the pin.
public PCA9685Pin ( Int32 address ) : System
address System.Int32 /// The pin address. ///
return System

PCA9685Pin() public method

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class with the address and name of the pin.
public PCA9685Pin ( Int32 address, String name ) : System
address System.Int32 /// The pin address. ///
name String /// The name of the pin. ///
return System

PCA9685Pin() public method

Initializes a new instance of the CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin class
public PCA9685Pin ( String provider, Int32 address, String name ) : System
provider String /// The name of the pin provider. ///
address System.Int32 /// The pin address. ///
name String /// The name of the pin. ///
return System

ToString() public method

Returns a System.String that represents the current CyrusBuilt.MonoPi.IO.PCA.PCA9685Pin.
public ToString ( ) : String
return String

Property Details

ALL public_oe static_oe property

All channels.
public static IPCA9685Pin[] ALL
return IPCA9685Pin[]

PWM_00 public_oe static_oe property

PWM channel 0.
public static IPCA9685Pin PWM_00
return IPCA9685Pin

PWM_01 public_oe static_oe property

PWM channel 1.
public static IPCA9685Pin PWM_01
return IPCA9685Pin

PWM_02 public_oe static_oe property

PWM channel 2.
public static IPCA9685Pin PWM_02
return IPCA9685Pin

PWM_03 public_oe static_oe property

PWM channel 3.
public static IPCA9685Pin PWM_03
return IPCA9685Pin

PWM_04 public_oe static_oe property

PWM channel 4.
public static IPCA9685Pin PWM_04
return IPCA9685Pin

PWM_05 public_oe static_oe property

PWM channel 5.
public static IPCA9685Pin PWM_05
return IPCA9685Pin

PWM_06 public_oe static_oe property

PWM channel 6.
public static IPCA9685Pin PWM_06
return IPCA9685Pin

PWM_07 public_oe static_oe property

PWM channel 7.
public static IPCA9685Pin PWM_07
return IPCA9685Pin

PWM_08 public_oe static_oe property

PWM channel 8.
public static IPCA9685Pin PWM_08
return IPCA9685Pin

PWM_09 public_oe static_oe property

PWM channel 9.
public static IPCA9685Pin PWM_09
return IPCA9685Pin

PWM_10 public_oe static_oe property

PWM channel 10.
public static IPCA9685Pin PWM_10
return IPCA9685Pin

PWM_11 public_oe static_oe property

PWM channel 11.
public static IPCA9685Pin PWM_11
return IPCA9685Pin

PWM_12 public_oe static_oe property

PWM channel 12.
public static IPCA9685Pin PWM_12
return IPCA9685Pin

PWM_13 public_oe static_oe property

PWM channel 13.
public static IPCA9685Pin PWM_13
return IPCA9685Pin

PWM_14 public_oe static_oe property

PWM channel 14.
public static IPCA9685Pin PWM_14
return IPCA9685Pin

PWM_15 public_oe static_oe property

PWM channel 15.
public static IPCA9685Pin PWM_15
return IPCA9685Pin