Skip to content

Commit

Permalink
add comented stemma I2C in MCU examples. remove from pi example
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Jun 10, 2024
1 parent f1ca25c commit 6494e36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/mlx90640_pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
INTERPOLATE = 10 # scale factor for final image

mlx = adafruit_mlx90640.MLX90640(board.I2C()) # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller

# the list of colors we can choose from
heatmap = (
Expand Down
1 change: 1 addition & 0 deletions examples/mlx90640_pygamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def MakeHeatMapColor():
max_t = 37 # Initial maximum temperature range, before auto scale

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

mlx = adafruit_mlx90640.MLX90640(i2c)
print("MLX addr detected on I2C")
Expand Down
1 change: 1 addition & 0 deletions examples/mlx90640_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
PRINT_ASCIIART = True

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

mlx = adafruit_mlx90640.MLX90640(i2c)
print("MLX addr detected on I2C")
Expand Down

0 comments on commit 6494e36

Please sign in to comment.