Skip to content

Commit 8e0f081

Browse files
authored
Merge pull request #51 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 53c796f + a1d994e commit 8e0f081

4 files changed

+8
-4
lines changed

examples/is31fl3731_keybow_2040_rainbow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def hsv_to_rgb(hue, sat, val):
6161
return (val, p, q)
6262

6363

64-
i2c = board.I2C()
64+
i2c = board.I2C() # uses board.SCL and board.SDA
65+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
6566

6667
# Set up 4x4 RGB matrix of Keybow 2040
6768
display = Display(i2c)

examples/is31fl3731_pillow_animated_gif.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
# uncomment next line if you are using Pimoroni Scroll Phat HD LED 17 x 7
2828
# from adafruit_is31fl3731.scroll_phat_hd import ScrollPhatHD as Display
2929

30-
i2c = board.I2C()
30+
i2c = board.I2C() # uses board.SCL and board.SDA
31+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
3132

3233
display = Display(i2c)
3334

examples/is31fl3731_pillow_marquee.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
SCROLLING_TEXT = "You can display a personal message here..."
2626
BRIGHTNESS = 64 # Brightness can be between 0-255
2727

28-
i2c = board.I2C()
28+
i2c = board.I2C() # uses board.SCL and board.SDA
29+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2930

3031
display = Display(i2c)
3132

examples/is31fl3731_pillow_numbers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525

2626
BRIGHTNESS = 32 # Brightness can be between 0-255
2727

28-
i2c = board.I2C()
28+
i2c = board.I2C() # uses board.SCL and board.SDA
29+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2930

3031
display = Display(i2c)
3132

0 commit comments

Comments
 (0)