Skip to main content

Interface IAnalogInputPort

Contract for ports that implement an analog input channel.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface IAnalogInputPort : IAnalogPort, IPort<IAnalogChannelInfo>, IDisposable

Properties

ReferenceVoltage

The maximum voltage that the Analog Port can read. Typically 3.3V. This value is used to convert raw ADC values into voltage.

View Source
Declaration
Voltage ReferenceVoltage { get; }

Methods

Read()

Gets the current voltage. For frequent reads, use StartUpdating() and StopUpdating() in conjunction with the SampleBuffer.

View Source
Declaration
Task<Voltage> Read()
Returns

System.Threading.Tasks.Task<Meadow.Units.Voltage>: The current voltage.