Analog input value

adc( inputnumber )

Returns the value of a physical input.

Description

adc( inputnumber )

Returns the value read on the ADC for the given input.

Parameters

inputnumber Physical input number (1-8)

Return value

This function returns the value read on the given input. The unit depends on the configured mode.

Input configuration Unit returned by this function
Voltage mV
Current uA
Resistance Ohm
Thermistor Degrees Kelvin
Pulse Interval in ms

Example usage

adc( 4 )

Returns the value read from input #4