From aaef585a2d2fcfd5a7fe736ce863fa73dca27858 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/ds1307_simpletest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ds1307_simpletest.py b/examples/ds1307_simpletest.py index ed3078e..8536b72 100644 --- a/examples/ds1307_simpletest.py +++ b/examples/ds1307_simpletest.py @@ -10,7 +10,8 @@ import board import adafruit_ds1307 -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 rtc = adafruit_ds1307.DS1307(i2c) # Lookup table for names of days (nicer printing).