Skip to content

Commit

Permalink
Merge pull request #32 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
FoamyGuy committed Jun 10, 2024
2 parents 8918f6e + 6494e36 commit df63867
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mlx90640_pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
COLORDEPTH = 1000 # how many color values we can have
INTERPOLATE = 10 # scale factor for final image

mlx = adafruit_mlx90640.MLX90640(board.I2C())
mlx = adafruit_mlx90640.MLX90640(board.I2C()) # uses board.SCL and board.SDA

# 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 df63867

Please sign in to comment.