Skip to content

Commit 91a505d

Browse files
authored
Merge pull request #16 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents c7f08fa + 070d306 commit 91a505d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/scd4x_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_scd4x
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
scd4x = adafruit_scd4x.SCD4X(i2c)
1011
print("Serial number:", [hex(i) for i in scd4x.serial_number])
1112

examples/scd4x_tuning_knobs.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_scd4x
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
scd4x = adafruit_scd4x.SCD4X(i2c)
1011
print("Serial number:", [hex(i) for i in scd4x.serial_number])
1112

0 commit comments

Comments
 (0)