From f1ca25c338b05bddf74271d06751a5e2e95b815f Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:26 -0500 Subject: [PATCH 1/2] Added commented out board.STEMMA_I2C with explanation --- examples/mlx90640_pil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/mlx90640_pil.py b/examples/mlx90640_pil.py index c4a5466..8abe564 100644 --- a/examples/mlx90640_pil.py +++ b/examples/mlx90640_pil.py @@ -16,7 +16,8 @@ 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 +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # the list of colors we can choose from heatmap = ( From 6494e36cfd1befbce76ed860be8aef3e8cca85fc Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 10 Jun 2024 16:52:25 -0500 Subject: [PATCH 2/2] add comented stemma I2C in MCU examples. remove from pi example --- examples/mlx90640_pil.py | 1 - examples/mlx90640_pygamer.py | 1 + examples/mlx90640_simpletest.py | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/mlx90640_pil.py b/examples/mlx90640_pil.py index 8abe564..179e0a9 100644 --- a/examples/mlx90640_pil.py +++ b/examples/mlx90640_pil.py @@ -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 = ( diff --git a/examples/mlx90640_pygamer.py b/examples/mlx90640_pygamer.py index 11763b9..65bdce0 100644 --- a/examples/mlx90640_pygamer.py +++ b/examples/mlx90640_pygamer.py @@ -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") diff --git a/examples/mlx90640_simpletest.py b/examples/mlx90640_simpletest.py index 4a9b3a7..9eb0a0f 100644 --- a/examples/mlx90640_simpletest.py +++ b/examples/mlx90640_simpletest.py @@ -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")