From daad57fd8ff2a7dc0670d13435edf1375b640899 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:26 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/mcp9808_average_temp_mqtt.py | 1 + examples/mcp9808_simpletest.py | 1 + examples/mcp9808_temperature_limits.py | 1 + 3 files changed, 3 insertions(+) diff --git a/examples/mcp9808_average_temp_mqtt.py b/examples/mcp9808_average_temp_mqtt.py index 67acab8..cda59c3 100644 --- a/examples/mcp9808_average_temp_mqtt.py +++ b/examples/mcp9808_average_temp_mqtt.py @@ -15,6 +15,7 @@ i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # To initialise using the default address: mcp = adafruit_mcp9808.MCP9808(i2c) diff --git a/examples/mcp9808_simpletest.py b/examples/mcp9808_simpletest.py index 3a5e810..ad369a0 100644 --- a/examples/mcp9808_simpletest.py +++ b/examples/mcp9808_simpletest.py @@ -6,6 +6,7 @@ import adafruit_mcp9808 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # To initialise using the default address: mcp = adafruit_mcp9808.MCP9808(i2c) diff --git a/examples/mcp9808_temperature_limits.py b/examples/mcp9808_temperature_limits.py index 5f97e33..0f54080 100644 --- a/examples/mcp9808_temperature_limits.py +++ b/examples/mcp9808_temperature_limits.py @@ -10,6 +10,7 @@ import adafruit_mcp9808 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller mcp = adafruit_mcp9808.MCP9808(i2c) # Change the values according to the desired values