From a5d3802f22cf537f19a5d72207cd588d91c9e225 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:23 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/ds3502_blinka_simpletest.py | 3 ++- examples/ds3502_set_default.py | 3 ++- examples/ds3502_simpletest.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/ds3502_blinka_simpletest.py b/examples/ds3502_blinka_simpletest.py index 32e20b9..9aa25f1 100644 --- a/examples/ds3502_blinka_simpletest.py +++ b/examples/ds3502_blinka_simpletest.py @@ -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 diff --git a/examples/ds3502_set_default.py b/examples/ds3502_set_default.py index dc7609a..619dcdc 100644 --- a/examples/ds3502_set_default.py +++ b/examples/ds3502_set_default.py @@ -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) diff --git a/examples/ds3502_simpletest.py b/examples/ds3502_simpletest.py index 6047b7e..afc9e48 100644 --- a/examples/ds3502_simpletest.py +++ b/examples/ds3502_simpletest.py @@ -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)