Skip to content

Commit 5f258ad

Browse files
authored
Merge pull request #7 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 610631a + e7359bc commit 5f258ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/tla202x_analog_in.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#
1919
########################################
2020

21-
i2c = board.I2C()
21+
i2c = board.I2C() # uses board.SCL and board.SDA
22+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2223
tla = TLA.TLA2024(i2c)
2324
val_max = (2**15) - 1
2425
pin_0 = AnalogIn(tla, TLA.A0)

0 commit comments

Comments
 (0)