Class Nxp74HC4051
Represents an NXP 74HC4051 8-channel analog multiplexer
Assembly: AnalogMux.dll
View Source
public class Nxp74HC4051 : AnalogMuxBase, IAnalogInputMultiplexer
Inheritance: System.Object
-> Meadow.Foundation.ICs.IOExpanders.AnalogMuxBase
Implements:
Meadow.Foundation.ICs.IOExpanders.IAnalogInputMultiplexer
Properties
S0
The port connected to the mux's S0 selection pin
View Source
public IDigitalOutputPort S0 { get; }
S1
The port connected to the mux's S1 selection pin
View Source
public IDigitalOutputPort? S1 { get; }
S2
The port connected to the mux's S2 selection pin
View Source
public IDigitalOutputPort? S2 { get; }
Methods
SetInputChannel(int)
Sets the channel input (Y pin) that will be routed to the mux output (Z pin)
View Source
public override void SetInputChannel(int channel)
Parameters
Type | Name |
---|---|
System.Int32 | channel |
Exceptions
System.ArgumentOutOfRangeException