Meadow.Foundation.ICs.IOExpanders.Pca8574a
Pca8574a | |
---|---|
Status | |
Source code | GitHub |
Datasheet(s) | GitHub |
NuGet package |
Class Pca8574a
Represents the Pca8574a 8-bit I/O I2C expander
Assembly: Pcx857x.dll
View Source
Declaration
public class Pca8574a : Pcx8574, IDigitalOutputController, IDigitalInputController, IDigitalInterruptController, IPinController, II2cPeripheral, IDisposable
Inheritance: System.Object
-> Meadow.Foundation.ICs.IOExpanders.Pcx857x
Implements:
Meadow.Hardware.IDigitalOutputController
, Meadow.Hardware.IDigitalInputController
, Meadow.Hardware.IDigitalInterruptController
, Meadow.Hardware.IPinController
, Meadow.Hardware.II2cPeripheral
, System.IDisposable
Methods
GetAddressForPins(bool, bool, bool)
Helper method to get address from address pin configuration
View Source
Declaration
public static byte GetAddressForPins(bool pinA0, bool pinA1, bool pinA2)
Returns
System.Byte
: The device address
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | pinA0 | State of A0 address pin - true if high |
System.Boolean | pinA1 | State of A1 address pin - true if high |
System.Boolean | pinA2 | State of A2 address pin - true if high |
Implements
Meadow.Hardware.IDigitalOutputController
Meadow.Hardware.IDigitalInputController
Meadow.Hardware.IDigitalInterruptController
Meadow.Hardware.IPinController
Meadow.Hardware.II2cPeripheral
System.IDisposable