Skip to content

Commit 93636d3

Browse files
authored
Merge pull request #25 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 08a05fe + 0684567 commit 93636d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/cap1188_advancedtest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import board
77
from adafruit_cap1188.i2c import CAP1188_I2C
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
cap = CAP1188_I2C(i2c)
1112

1213
print(f"Sensor Initial Configuration Values: {cap.averaging, cap.sample, cap.cycle}")

examples/cap1188_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from adafruit_cap1188.i2c import CAP1188_I2C
66

77
i2c = board.I2C() # uses board.SCL and board.SDA
8+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
89
cap = CAP1188_I2C(i2c)
910

1011
# SPI setup

0 commit comments

Comments
 (0)