Remarks
Nxp74HC4067 | |
---|---|
Status | |
Source code | GitHub |
Datasheet(s) | GitHub |
NuGet package |
Code Example
Sample project(s) available on GitHub
Wiring Example
To wire a Mcp23s08 to your Meadow board, connect the following:
Nxp74HC4067 | Meadow Pin |
---|---|
GND | GND |
VCC | 3V3 |
SCL | D08 (SCL Pin) |
SDA | D07 (SDA Pin) |
Characteristic | Locus |
---|---|
Inheritance | System.Object AnalogMuxBase > Nxp74HC4067 > Hp4067 |
Implements | IAnalogInputMultiplexer |
Inherited Members | AnalogMuxBase.SyncRoot AnalogMuxBase.EnablePort AnalogMuxBase.Signal AnalogMuxBase.Enable() AnalogMuxBase.Disable() |
Namespace | Meadow.Foundation.ICs.IOExpanders |
Assembly | AnalogMux.dll |
Syntax
public class Nxp74HC4067 : AnalogMuxBase, IAnalogInputMultiplexer
Constructors
Nxp74HC4067(IAnalogInputPort, IDigitalOutputPort, Nullable<IDigitalOutputPort>, Nullable<IDigitalOutputPort>, Nullable<IDigitalOutputPort>, Nullable<IDigitalOutputPort>)
Creates a new Nxp74HC4051 object
Declaration
public Nxp74HC4067(IAnalogInputPort z, IDigitalOutputPort s0, IDigitalOutputPort? s1 = null, IDigitalOutputPort? s2 = null, IDigitalOutputPort? s3 = null, IDigitalOutputPort? enable = null)
Parameters
Type | Name | Description |
---|---|---|
IAnalogInputPort | z | |
IDigitalOutputPort | s0 | |
System.Nullable<IDigitalOutputPort> | s1 | |
System.Nullable<IDigitalOutputPort> | s2 | |
System.Nullable<IDigitalOutputPort> | s3 | |
System.Nullable<IDigitalOutputPort> | enable |
Properties
S0
The port connected to the mux's S0 selection pin
Declaration
public IDigitalOutputPort S0 { get; }
Property Value
Type | Description |
---|---|
IDigitalOutputPort |
S1
The port connected to the mux's S1 selection pin
Declaration
public IDigitalOutputPort? S1 { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IDigitalOutputPort> |
S2
The port connected to the mux's S2 selection pin
Declaration
public IDigitalOutputPort? S2 { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IDigitalOutputPort> |
S3
The port connected to the mux's S3 selection pin
Declaration
public IDigitalOutputPort? S3 { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IDigitalOutputPort> |
Methods
SetInputChannel(Int32)
Sets the channel input (Y pin) that will be routed to the mux output (Z pin)
Declaration
public override void SetInputChannel(int channel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channel |