:::C void setAnalog(int in);
Set an IO channel to be an analog input. The input will accept voltages in the range 0 - 3.3V and represent the voltages as a value between 0 and 4095.
setAnalog(4);
Wiki: Firmware Functions