Skip to main content

Interface IAnalogInputController

Controller for analog input pins that enables creating individual analog input ports.

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface IAnalogInputController : IPinController

Methods​

CreateAnalogInputPort(IPin, Voltage?)​

Creates an analog input port using the specified pin.

View Source​
Declaration
IAnalogInputPort CreateAnalogInputPort(IPin pin, Voltage? voltageReference = null)
Returns​

Meadow.Hardware.IAnalogInputPort: An instance of Meadow.Hardware.IAnalogInputPort configured for the specified pin.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin to use for analog input.
System.Nullable<Meadow.Units.Voltage>voltageReferenceOptional reference voltage for the analog input. If null, the default reference voltage will be used.