C# Class CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCP4632

Hardware device abstraction component for the Microchip MCP4632.
Inheritance: MicrochipPotentiometerBase
ファイルを表示 Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
MCP4632 ( II2CBus device, System.Boolean pinA0, System.Boolean pinA1, MicrochipPotChannel channel, Int32 initialValue ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCP4632 class with the I2C device connection, pin A0 and A1 states, the potentiometer (channel) provided by the device, and the initial value for devices which are not capable of non-volatile wipers.

Method Details

MCP4632() public method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCP4632 class with the I2C device connection, pin A0 and A1 states, the potentiometer (channel) provided by the device, and the initial value for devices which are not capable of non-volatile wipers.
/// cannot be null. - or - /// cannot be null. /// /// is not supported by this device. /// /// Unable to open the I2C bus. ///
public MCP4632 ( II2CBus device, System.Boolean pinA0, System.Boolean pinA1, MicrochipPotChannel channel, Int32 initialValue ) : System
device II2CBus /// The I2C bus device this instance is connected to. ///
pinA0 System.Boolean /// Whether the device's address pin A0 is high (true) or low (false). ///
pinA1 System.Boolean /// Whether the device's address pin A1 is high (true) or low (false). ///
channel MicrochipPotChannel /// Which of the potentiometers provided by the device to control. ///
initialValue System.Int32 /// The value for devices which are not capable of non-volatile wipers. ///
return System