Skip to content

Commit df63867

Browse files
authored
Merge pull request #32 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 8918f6e + 6494e36 commit df63867

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

examples/mlx90640_pil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
COLORDEPTH = 1000 # how many color values we can have
1717
INTERPOLATE = 10 # scale factor for final image
1818

19-
mlx = adafruit_mlx90640.MLX90640(board.I2C())
19+
mlx = adafruit_mlx90640.MLX90640(board.I2C()) # uses board.SCL and board.SDA
2020

2121
# the list of colors we can choose from
2222
heatmap = (

examples/mlx90640_pygamer.py

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def MakeHeatMapColor():
9393
max_t = 37 # Initial maximum temperature range, before auto scale
9494

9595
i2c = busio.I2C(board.SCL, board.SDA, frequency=800000)
96+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
9697

9798
mlx = adafruit_mlx90640.MLX90640(i2c)
9899
print("MLX addr detected on I2C")

examples/mlx90640_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
PRINT_ASCIIART = True
1111

1212
i2c = busio.I2C(board.SCL, board.SDA, frequency=800000)
13+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1314

1415
mlx = adafruit_mlx90640.MLX90640(i2c)
1516
print("MLX addr detected on I2C")

0 commit comments

Comments
 (0)