From 732541cfcfc0c02f4163d2f159a504f2bfa5c5cb Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:21 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/bmp280_normal_mode.py | 1 + examples/bmp280_simpletest.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/bmp280_normal_mode.py b/examples/bmp280_normal_mode.py index b5d87c8..bc1babb 100644 --- a/examples/bmp280_normal_mode.py +++ b/examples/bmp280_normal_mode.py @@ -12,6 +12,7 @@ # Create sensor object, communicating over the board's default I2C bus i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c) # OR Create sensor object, communicating over the board's default SPI bus diff --git a/examples/bmp280_simpletest.py b/examples/bmp280_simpletest.py index 004f737..e2b138a 100644 --- a/examples/bmp280_simpletest.py +++ b/examples/bmp280_simpletest.py @@ -11,6 +11,7 @@ # Create sensor object, communicating over the board's default I2C bus i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c) # OR Create sensor object, communicating over the board's default SPI bus