Skip to content

Commit ae45c83

Browse files
committed
change name to be specific about the i2c protocol
1 parent a149b6f commit ae45c83

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

adafruit_gps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ def _parse_gpgsv(self, args):
446446
pass
447447
self.satellites_prev = self.satellites
448448

449-
class GPS_I2C(GPS):
450-
"""I2C GPS parsing module. Can parse simple NMEA data sentences from
451-
an I2C-capable GPS module to read latitude, longitude, and more.
449+
class GPS_GtopI2C(GPS):
450+
"""GTop-compatible I2C GPS parsing module. Can parse simple NMEA data
451+
sentences from an I2C-capable GPS module to read latitude, longitude, and more.
452452
"""
453453
def __init__(self, i2c_bus, *, address=_GPSI2C_DEFAULT_ADDRESS, debug=False,
454454
timeout=5):
@@ -505,4 +505,4 @@ def readline(self):
505505
ret = bytearray(self._internalbuffer)
506506
self._internalbuffer = [] # reset the buffer to empty
507507
return ret
508-
return None # no completed data yet
508+
return None # no completed data yet

examples/gps_datalogging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
# Create a GPS module instance.
5757
gps = adafruit_gps.GPS(uart) # Use UART/pyserial
58-
#gps = adafruit_gps.GPS_I2C(i2c) # Use I2C interface
58+
#gps = adafruit_gps.GPS_GtopI2C(i2c) # Use I2C interface
5959

6060
# Main loop just reads data from the GPS module and writes it back out to
6161
# the output file while also printing to serial output.

examples/gps_echotest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Create a GPS module instance.
2424
gps = adafruit_gps.GPS(uart) # Use UART/pyserial
25-
#gps = adafruit_gps.GPS_I2C(i2c) # Use I2C interface
25+
#gps = adafruit_gps.GPS_GtopI2C(i2c) # Use I2C interface
2626

2727
# Initialize the GPS module by changing what data it sends and at what rate.
2828
# These are NMEA extensions for PMTK_314_SET_NMEA_OUTPUT and

examples/gps_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Create a GPS module instance.
2424
gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial
25-
#gps = adafruit_gps.GPS_I2C(i2c, debug=False) # Use I2C interface
25+
#gps = adafruit_gps.GPS_GtopI2C(i2c, debug=False) # Use I2C interface
2626

2727
# Initialize the GPS module by changing what data it sends and at what rate.
2828
# These are NMEA extensions for PMTK_314_SET_NMEA_OUTPUT and

examples/gps_time_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#i2c = busio.I2C(board.SCL, board.SDA)
1313

1414
gps = adafruit_gps.GPS(uart, debug=False)
15-
#gps = adafruit_gps.GPS_I2C(i2c, debug=False) # Use I2C interface
15+
#gps = adafruit_gps.GPS_GtopI2C(i2c, debug=False) # Use I2C interface
1616

1717
gps.send_command(b'PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0')
1818
gps.send_command(b'PMTK220,1000')

0 commit comments

Comments
 (0)