Skip to content

Commit 8874b9c

Browse files
authored
Merge pull request #23 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 5b48e65 + 699f565 commit 8874b9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/mlx90614_simpletest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
# The MLX90614 only works at the default I2C bus speed of 100kHz.
1919
# A higher speed, such as 400kHz, will not work.
20-
i2c = board.I2C()
20+
i2c = board.I2C() # uses board.SCL and board.SDA
21+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2122
mlx = adafruit_mlx90614.MLX90614(i2c)
2223

2324
# temperature results in celsius

0 commit comments

Comments
 (0)