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 configured for the specified pin.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Hardware.IPin | pin | The pin to use for analog input. |
System.Nullable<Meadow.Units.Voltage> | voltageReference | Optional reference voltage for the analog input. If null, the default reference voltage will be used. |