Skip to content

Commit 586f53b

Browse files
authored
Merge pull request #13 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 7355f7e + bfb7f3f commit 586f53b

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

examples/lps35hw_data_rate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import board
66
from adafruit_lps35hw import LPS35HW, DataRate
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
lps = LPS35HW(i2c)
1011

1112
lps.data_rate = DataRate.ONE_SHOT

examples/lps35hw_filter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import adafruit_lps35hw
77

88

9-
i2c = board.I2C()
9+
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
lps = adafruit_lps35hw.LPS35HW(i2c)
1112

1213
lps.low_pass_enabled = True

examples/lps35hw_high_threshold.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import board
66
import adafruit_lps35hw
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
lps = adafruit_lps35hw.LPS35HW(i2c)
1011

1112
# You may need to adjust the threshold to something closer

examples/lps35hw_relative.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import board
66
import adafruit_lps35hw
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
lps = adafruit_lps35hw.LPS35HW(i2c)
1011

1112
# set the current pressure as zero hPa and make measurements

examples/lps35hw_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import board
66
import adafruit_lps35hw
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
lps = adafruit_lps35hw.LPS35HW(i2c)
1011

1112
while True:

0 commit comments

Comments
 (0)