From 62d0f534479e55b72c76c9db54049e36dbd377c5 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:24 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/is31fl3731_keybow_2040_rainbow.py | 3 ++- examples/is31fl3731_pillow_animated_gif.py | 3 ++- examples/is31fl3731_pillow_marquee.py | 3 ++- examples/is31fl3731_pillow_numbers.py | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/is31fl3731_keybow_2040_rainbow.py b/examples/is31fl3731_keybow_2040_rainbow.py index 098ce37..e80dac3 100644 --- a/examples/is31fl3731_keybow_2040_rainbow.py +++ b/examples/is31fl3731_keybow_2040_rainbow.py @@ -61,7 +61,8 @@ def hsv_to_rgb(hue, sat, val): return (val, p, q) -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller # Set up 4x4 RGB matrix of Keybow 2040 display = Display(i2c) diff --git a/examples/is31fl3731_pillow_animated_gif.py b/examples/is31fl3731_pillow_animated_gif.py index 9d22cd8..741bf25 100644 --- a/examples/is31fl3731_pillow_animated_gif.py +++ b/examples/is31fl3731_pillow_animated_gif.py @@ -27,7 +27,8 @@ # uncomment next line if you are using Pimoroni Scroll Phat HD LED 17 x 7 # from adafruit_is31fl3731.scroll_phat_hd import ScrollPhatHD as Display -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller display = Display(i2c) diff --git a/examples/is31fl3731_pillow_marquee.py b/examples/is31fl3731_pillow_marquee.py index e15d3a5..ecf0d83 100644 --- a/examples/is31fl3731_pillow_marquee.py +++ b/examples/is31fl3731_pillow_marquee.py @@ -25,7 +25,8 @@ SCROLLING_TEXT = "You can display a personal message here..." BRIGHTNESS = 64 # Brightness can be between 0-255 -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller display = Display(i2c) diff --git a/examples/is31fl3731_pillow_numbers.py b/examples/is31fl3731_pillow_numbers.py index 8481c57..86af577 100644 --- a/examples/is31fl3731_pillow_numbers.py +++ b/examples/is31fl3731_pillow_numbers.py @@ -25,7 +25,8 @@ BRIGHTNESS = 32 # Brightness can be between 0-255 -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller display = Display(i2c)