From ceb1d743e1d7f0d2c3a2ec7ef76c7219f105f2df Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:24 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/gps_datalogging.py | 3 ++- examples/gps_echotest.py | 3 ++- examples/gps_satellitefix.py | 3 ++- examples/gps_simpletest.py | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/gps_datalogging.py b/examples/gps_datalogging.py index 1507049..eb2d391 100644 --- a/examples/gps_datalogging.py +++ b/examples/gps_datalogging.py @@ -63,7 +63,8 @@ # uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10) # If using I2C, we'll create an I2C interface to talk to using default pins -# i2c = board.I2C() +# i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # Create a GPS module instance. gps = adafruit_gps.GPS(uart) # Use UART/pyserial diff --git a/examples/gps_echotest.py b/examples/gps_echotest.py index baae47f..9a3acda 100644 --- a/examples/gps_echotest.py +++ b/examples/gps_echotest.py @@ -21,7 +21,8 @@ # uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10) # If using I2C, we'll create an I2C interface to talk to using default pins -# i2c = board.I2C() +# i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # Create a GPS module instance. gps = adafruit_gps.GPS(uart) # Use UART/pyserial diff --git a/examples/gps_satellitefix.py b/examples/gps_satellitefix.py index c96d0db..3927b3a 100644 --- a/examples/gps_satellitefix.py +++ b/examples/gps_satellitefix.py @@ -23,7 +23,8 @@ # uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10) # If using I2C, we'll create an I2C interface to talk to using default pins -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # Create a GPS module instance. # gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial diff --git a/examples/gps_simpletest.py b/examples/gps_simpletest.py index 34af8f8..0e028e4 100644 --- a/examples/gps_simpletest.py +++ b/examples/gps_simpletest.py @@ -21,7 +21,8 @@ # uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10) # If using I2C, we'll create an I2C interface to talk to using default pins -# i2c = board.I2C() +# i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # Create a GPS module instance. gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial