Characteristic Locus
Namespace Meadow.Hardware
Assembly Meadow.dll

Syntax

public interface IAnalogInputController

Fields

DefaultA2DReferenceVoltage

The default Analog to Digital converter reference voltage.

Declaration
public const float DefaultA2DReferenceVoltage = 3.3F

Field Value

Type Description
System.Single

Methods

CreateAnalogInputPort(IPin, Single)

Initializes the specified pin to be an AnalogInput and returns the port used to sample the port value.

Declaration
IAnalogInputPort CreateAnalogInputPort(IPin pin, float voltageReference = 3.3F)

Parameters

Type Name Description
IPin pin

The pin to created the port on.

System.Single voltageReference

Reference maximum analog input port voltage in Volts. Default is 3.3V.

Returns

Type Description
IAnalogInputPort