Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
Analog Inputs Functions
Read an Analog Input ADCVal(channel);
This function returns an int value (from 0 to 1023...) related to the Analog channel (from 1 to 4) as
reported on the pinout table.
Parameters:
channel: specify the ADC input channel (1 to 4)
Example:
int myADCValue; //Initialize the variable to get the value
myADCValue = ADCVal(1); //Returns the value of the Analog channel #1
18