5 gpio.getadc(adcnumber), 6 gpio.setdac(enable, value)8, 7 gpio.setvaux(vauxnumber, enable)8 – Rainbow Electronics GM862-GPS User Manual
Page 40: 6 gpio.setdac(enable, value), 7 gpio.setvaux(vauxnumber, enable)

Easy Script
in Python
80000ST10020a Rev.8 - 01/10/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 40 of 100
2.6.5 GPIO.getADC(adcNumber)
9
Gets ADC value in the same way as AT#ADC command. Input parameter adcNumber is a Python
integer which represents the ADC number that will be read and converted in voltage.
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 return value in mV.
2.6.6 GPIO.setDAC(enable, value)
8
Sets DAC value in the same way as AT#DAC command. First input parameter enable is a Python
integer and can assume values 0 or 1. If it is set to 1 enables DAC output otherwise if it is set to 0
disabled DAC output. Second input parameter value is a Python integer and represents the scale
factor of output voltage and can assume values in the range 0-1023.
Return value is a Python integer that has value -1 if an error occurred otherwise it has value 1.
Example:
res = GPIO.setDAC(1, 512)
sets DAC output voltage at half the range, assigning return value to res.
2.6.7 GPIO.setVAUX(vauxNumber, enable)
8
Enables or disables VAUX in the same way as AT#VAUX command. First input parameter
vauxNumber is a Python integer that represents VUAX number that will be enabled or disabled.
Second input parameter enable is a Python integer that can assume value 1 in order to enable VAUX
output or 0 if VAUX output should be disabled.
Return value is a Python integer that has value -1 if an error occurred otherwise it has value 1.
Example:
res = GPIO.setVAUX(1, 1)
enables VAUX number 1 output, assigning return value to res.
9
Available only for modules with following Order-Num.: GM862PYT***-***, , GE863PYT***-***, , GM862GPS***-
***, GE863GPS***-***, GC864PYT***-*** , GC864PC2***-***, and the old 3990250657 and 3990250660