This method gets ADC value. It is equivalent to the AT#ADC command.
The input parameter adcNumber is a Python integer which represents the ADC number that will be read and converted in voltage.
The return value is a Python integer which is -1 if an error occurred otherwise the converted voltage is returned in mV.
Example:
mV = GPIO.getADC(2)
gets ADC number 2 input voltage, assigning the return value in mV.
|
|
Note: For version 18.11.004 the only available value for adcNumber is 1. |