From b3bfea20ff45d8b1148d192cc1db4aaac97c2789 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:24 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/hts221_simpletest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/hts221_simpletest.py b/examples/hts221_simpletest.py index d34e64f..d0c33a4 100644 --- a/examples/hts221_simpletest.py +++ b/examples/hts221_simpletest.py @@ -5,7 +5,8 @@ import board import adafruit_hts221 -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 hts = adafruit_hts221.HTS221(i2c) data_rate = adafruit_hts221.Rate.label[hts.data_rate]