Skip to content

Commit

Permalink
Merge pull request #13 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 de4b97e + 375e124 commit ef83419
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/ds3502_blinka_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import board
import adafruit_ds3502

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
ds3502 = adafruit_ds3502.DS3502(i2c)

# As this code runs, measure the voltage between ground and the RW (wiper) pin
Expand Down
3 changes: 2 additions & 1 deletion examples/ds3502_set_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import board
import adafruit_ds3502

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
ds3502 = adafruit_ds3502.DS3502(i2c)


Expand Down
3 changes: 2 additions & 1 deletion examples/ds3502_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
# this example will not work with Blinka/rasberry Pi due to the lack of analog pins.
# Blinka and Raspberry Pi users should run the "ds3502_blinka_simpletest.py" example

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

Expand Down

0 comments on commit ef83419

Please sign in to comment.