Skip to content

Commit

Permalink
Merge pull request #37 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 authored Nov 28, 2022
2 parents 10d8e36 + dfe653a commit 4daab36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/bmp280_normal_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/bmp280_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4daab36

Please sign in to comment.