Skip to main content

Class Tca95x5

Base class for TCA95x5 IO Expanders

Assembly: Tca95x5.dll​
View Source​
Declaration
public abstract class Tca95x5 : II2cPeripheral, IDigitalInputOutputController, IDigitalInputController, IDigitalOutputController, IPinController

Derived:
Meadow.Foundation.ICs.IOExpanders.Tca9535, Meadow.Foundation.ICs.IOExpanders.Tca9555

Implements:
Meadow.Hardware.II2cPeripheral, Meadow.Hardware.IDigitalInputOutputController, Meadow.Hardware.IDigitalInputController, Meadow.Hardware.IDigitalOutputController, Meadow.Hardware.IPinController

Properties​

DefaultI2cAddress​

The default I2C address for the peripheral

View Source​
Declaration
public byte DefaultI2cAddress { get; }

Pins​

TCA9535 pin definitions

View Source​
Declaration
public Tca95x5.PinDefinitions Pins { get; }

Methods​

CreateDigitalOutputPort(IPin, bool, OutputType)​

Creates an IDigitalOutputPort on the specified pin.

View Source​
Declaration
public IDigitalOutputPort CreateDigitalOutputPort(IPin pin, bool initialState = false, OutputType initialOutputType = OutputType.PushPull)
Returns​

Meadow.Hardware.IDigitalOutputPort

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.
System.BooleaninitialStateThe default initial state of the port,
either LOW (false), or HIGH (true).
Meadow.Hardware.OutputTypeinitialOutputTypeWhether the port is initially configured
as PushPull or OpenDrain. PushPull by default.

CreateDigitalInputPort(IPin, ResistorMode)​

Creates an IDigitalInputPort on the specified pin.

View Source​
Declaration
public IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode)
Returns​

Meadow.Hardware.IDigitalInputPort

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.
Meadow.Hardware.ResistorModeresistorModeThe ResistorMode specifying whether an
external pull-up/pull-down resistor is used, or an internal pull-up/pull-down
resistor should be configured for default state. |

Implements​

  • Meadow.Hardware.II2cPeripheral
  • Meadow.Hardware.IDigitalInputOutputController
  • Meadow.Hardware.IDigitalInputController
  • Meadow.Hardware.IDigitalOutputController
  • Meadow.Hardware.IPinController