Skip to content

Commit e255f1a

Browse files
authored
Merge pull request #92 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 9c43ee3 + ec3f7a1 commit e255f1a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/gps_datalogging.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
6464

6565
# If using I2C, we'll create an I2C interface to talk to using default pins
66-
# i2c = board.I2C()
66+
# i2c = board.I2C() # uses board.SCL and board.SDA
67+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
6768

6869
# Create a GPS module instance.
6970
gps = adafruit_gps.GPS(uart) # Use UART/pyserial

examples/gps_echotest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
2222

2323
# If using I2C, we'll create an I2C interface to talk to using default pins
24-
# i2c = board.I2C()
24+
# i2c = board.I2C() # uses board.SCL and board.SDA
25+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2526

2627
# Create a GPS module instance.
2728
gps = adafruit_gps.GPS(uart) # Use UART/pyserial

examples/gps_satellitefix.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
2424

2525
# If using I2C, we'll create an I2C interface to talk to using default pins
26-
i2c = board.I2C()
26+
i2c = board.I2C() # uses board.SCL and board.SDA
27+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2728

2829
# Create a GPS module instance.
2930
# gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial

examples/gps_simpletest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
2222

2323
# If using I2C, we'll create an I2C interface to talk to using default pins
24-
# i2c = board.I2C()
24+
# i2c = board.I2C() # uses board.SCL and board.SDA
25+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2526

2627
# Create a GPS module instance.
2728
gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial

0 commit comments

Comments
 (0)