Skip to content

Commit

Permalink
Merge pull request #14 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada authored Nov 22, 2022
2 parents d38f3a6 + 2c77583 commit f3ebbda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/monsterm4sk_pumpkin_shifting_eyes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
left_pumkin_eye_tilegrid = displayio.TileGrid(eye_image, pixel_shader=eye_palette)

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

# left eye group setup
Expand Down
3 changes: 2 additions & 1 deletion examples/monsterm4sk_rainbow_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
SCREEN_SIZE = 240
IMAGE_SIZE = 64 * 3

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

mask = adafruit_monsterm4sk.MonsterM4sk(i2c=i2c_bus)

Expand Down
3 changes: 2 additions & 1 deletion examples/monsterm4sk_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

SCREEN_SIZE = 240

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

mask = adafruit_monsterm4sk.MonsterM4sk(i2c=i2c_bus)

Expand Down

0 comments on commit f3ebbda

Please sign in to comment.