Skip to content

Commit

Permalink
Merge pull request #92 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada committed Nov 28, 2022
2 parents 9c43ee3 + ec3f7a1 commit e255f1a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/gps_datalogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion examples/gps_echotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion examples/gps_satellitefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion examples/gps_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e255f1a

Please sign in to comment.