Skip to content

Commit ef83419

Browse files
authored
Merge pull request #13 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents de4b97e + 375e124 commit ef83419

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/ds3502_blinka_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_ds3502
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
ds3502 = adafruit_ds3502.DS3502(i2c)
1011

1112
# As this code runs, measure the voltage between ground and the RW (wiper) pin

examples/ds3502_set_default.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import board
55
import adafruit_ds3502
66

7-
i2c = board.I2C()
7+
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
ds3502 = adafruit_ds3502.DS3502(i2c)
910

1011

examples/ds3502_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# this example will not work with Blinka/rasberry Pi due to the lack of analog pins.
1111
# Blinka and Raspberry Pi users should run the "ds3502_blinka_simpletest.py" example
1212

13-
i2c = board.I2C()
13+
i2c = board.I2C() # uses board.SCL and board.SDA
14+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1415
ds3502 = adafruit_ds3502.DS3502(i2c)
1516
wiper_output = AnalogIn(board.A0)
1617

0 commit comments

Comments
 (0)