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

Hardware device abstraction component for the Microchip MCP4552.
Inheritance: MicrochipPotentiometerBase
Afficher le fichier Open project: cyrusbuilt/MonoPi

Méthodes publiques

Méthode Description
MCP4552 ( II2CBus device, System.Boolean pinA0, System.Boolean pinA1, Int32 initialValue ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCP4552 class with the I2C device that is the connection to MCP4552, whether the address pin A0 is high or not, Whether the device's address pin A1 is high, and the initial value of the wiper.

Method Details

MCP4552() public méthode

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCP4552 class with the I2C device that is the connection to MCP4552, whether the address pin A0 is high or not, Whether the device's address pin A1 is high, and the initial value of the wiper.
/// cannot be null. /// /// Unable to open the I2C bus. ///
public MCP4552 ( II2CBus device, System.Boolean pinA0, System.Boolean pinA1, 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). ///
initialValue System.Int32 /// The initial value to set. ///
Résultat System