From 06c1d7274c5a2123dfb83bb1c69ae32e177ed93b Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:27 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/monsterm4sk_pumpkin_shifting_eyes.py | 3 ++- examples/monsterm4sk_rainbow_stars.py | 3 ++- examples/monsterm4sk_simpletest.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/monsterm4sk_pumpkin_shifting_eyes.py b/examples/monsterm4sk_pumpkin_shifting_eyes.py index 5ae08db..079c1f0 100644 --- a/examples/monsterm4sk_pumpkin_shifting_eyes.py +++ b/examples/monsterm4sk_pumpkin_shifting_eyes.py @@ -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 diff --git a/examples/monsterm4sk_rainbow_stars.py b/examples/monsterm4sk_rainbow_stars.py index 7c009ce..21155d2 100644 --- a/examples/monsterm4sk_rainbow_stars.py +++ b/examples/monsterm4sk_rainbow_stars.py @@ -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) diff --git a/examples/monsterm4sk_simpletest.py b/examples/monsterm4sk_simpletest.py index 1f4f78f..e8a48cd 100644 --- a/examples/monsterm4sk_simpletest.py +++ b/examples/monsterm4sk_simpletest.py @@ -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)