Skip to content

Commit 7259550

Browse files
authored
Merge pull request #30 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents fe84629 + ccef50a commit 7259550

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ds1307_simpletest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import board
1111
import adafruit_ds1307
1212

13-
i2c = board.I2C()
13+
i2c = board.I2C() # uses board.SCL and board.SDA
14+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1415
rtc = adafruit_ds1307.DS1307(i2c)
1516

1617
# Lookup table for names of days (nicer printing).

0 commit comments

Comments
 (0)