Returns the value of a physical input.
adc( inputnumber )
Returns the value read on the ADC for the given input.
inputnumber | Physical input number (1-8) |
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 |
adc( 4 )
Returns the value read from input #4