Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added commented out board.STEMMA_I2C with explanation #32

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading