From bf447cfe3526e8193905aac950e50deaab46f058 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:29 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/scd4x_simpletest.py | 3 ++- examples/scd4x_tuning_knobs.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/scd4x_simpletest.py b/examples/scd4x_simpletest.py index c4f035d..62b071a 100644 --- a/examples/scd4x_simpletest.py +++ b/examples/scd4x_simpletest.py @@ -5,7 +5,8 @@ import board import adafruit_scd4x -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 scd4x = adafruit_scd4x.SCD4X(i2c) print("Serial number:", [hex(i) for i in scd4x.serial_number]) diff --git a/examples/scd4x_tuning_knobs.py b/examples/scd4x_tuning_knobs.py index cb2495c..9c6e90b 100644 --- a/examples/scd4x_tuning_knobs.py +++ b/examples/scd4x_tuning_knobs.py @@ -5,7 +5,8 @@ import board import adafruit_scd4x -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 scd4x = adafruit_scd4x.SCD4X(i2c) print("Serial number:", [hex(i) for i in scd4x.serial_number])