beautypg.com

Rainbow Electronics GM862-GPS User Manual

Page 42

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 42 of 100


0 - charger not connected
1 - charger connected and charging
2 - charger connected and charging process completed
Second element of tuple is a Python integer which is battery voltage in mV.

Example:

cbc = GPIO.getCBC()

gets charger status and battery voltage values, assigning return value to cbc tuple.