Skip to content

Commit f3ebbda

Browse files
authored
Merge pull request #14 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents d38f3a6 + 2c77583 commit f3ebbda

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/monsterm4sk_pumpkin_shifting_eyes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
left_pumkin_eye_tilegrid = displayio.TileGrid(eye_image, pixel_shader=eye_palette)
5050

5151
# initialize the monster m4sk hardware
52-
i2c_bus = board.I2C()
52+
i2c_bus = board.I2C() # uses board.SCL and board.SDA
53+
# i2c_bus = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
5354
mask = adafruit_monsterm4sk.MonsterM4sk(i2c=i2c_bus)
5455

5556
# left eye group setup

examples/monsterm4sk_rainbow_stars.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
SCREEN_SIZE = 240
2121
IMAGE_SIZE = 64 * 3
2222

23-
i2c_bus = board.I2C()
23+
i2c_bus = board.I2C() # uses board.SCL and board.SDA
24+
# i2c_bus = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2425

2526
mask = adafruit_monsterm4sk.MonsterM4sk(i2c=i2c_bus)
2627

examples/monsterm4sk_simpletest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
SCREEN_SIZE = 240
2323

24-
i2c_bus = board.I2C()
24+
i2c_bus = board.I2C() # uses board.SCL and board.SDA
25+
# i2c_bus = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2526

2627
mask = adafruit_monsterm4sk.MonsterM4sk(i2c=i2c_bus)
2728

0 commit comments

Comments
 (0)