From 684924a8eff12c06946ab4b4977fc67ec3200066 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:30 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/tca8418_3x4_OLED.py | 1 + examples/tca8418_3x4_noOLED.py | 1 + examples/tca8418_digitalio_blink.py | 1 + examples/tca8418_digitalio_button.py | 1 + examples/tca8418_gpio_fifo.py | 1 + examples/tca8418_gpiobutton.py | 1 + examples/tca8418_keypad.py | 1 + examples/tca8418_simpletest.py | 1 + 8 files changed, 8 insertions(+) diff --git a/examples/tca8418_3x4_OLED.py b/examples/tca8418_3x4_OLED.py index 1861e4a..21ea879 100644 --- a/examples/tca8418_3x4_OLED.py +++ b/examples/tca8418_3x4_OLED.py @@ -15,6 +15,7 @@ oled_reset = board.D1 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) display_bus = displayio.I2CDisplay(i2c, device_address=0x3D, reset=oled_reset) diff --git a/examples/tca8418_3x4_noOLED.py b/examples/tca8418_3x4_noOLED.py index 1ff48b5..c6df5d3 100644 --- a/examples/tca8418_3x4_noOLED.py +++ b/examples/tca8418_3x4_noOLED.py @@ -7,6 +7,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) keymap = (("*", "0", "#"), ("7", "8", "9"), ("4", "5", "6"), ("1", "2", "3")) diff --git a/examples/tca8418_digitalio_blink.py b/examples/tca8418_digitalio_blink.py index 9a73438..03cc435 100644 --- a/examples/tca8418_digitalio_blink.py +++ b/examples/tca8418_digitalio_blink.py @@ -7,6 +7,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) # get a 'digitalio' like pin from the tca diff --git a/examples/tca8418_digitalio_button.py b/examples/tca8418_digitalio_button.py index d2b7073..c7d7747 100644 --- a/examples/tca8418_digitalio_button.py +++ b/examples/tca8418_digitalio_button.py @@ -8,6 +8,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) # get a 'digitalio' like pins from the tca diff --git a/examples/tca8418_gpio_fifo.py b/examples/tca8418_gpio_fifo.py index dc644f1..f6c34c9 100644 --- a/examples/tca8418_gpio_fifo.py +++ b/examples/tca8418_gpio_fifo.py @@ -8,6 +8,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller debug_i2c = DebugI2C(i2c) diff --git a/examples/tca8418_gpiobutton.py b/examples/tca8418_gpiobutton.py index 2748ed9..6c5e37a 100644 --- a/examples/tca8418_gpiobutton.py +++ b/examples/tca8418_gpiobutton.py @@ -7,6 +7,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) # setup 2 gpio: LED on R0 and button in R1 diff --git a/examples/tca8418_keypad.py b/examples/tca8418_keypad.py index a696749..c479997 100644 --- a/examples/tca8418_keypad.py +++ b/examples/tca8418_keypad.py @@ -7,6 +7,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) # set up all R0-R4 pins and C0-C3 pins as keypads diff --git a/examples/tca8418_simpletest.py b/examples/tca8418_simpletest.py index 5ed9c09..36387ce 100644 --- a/examples/tca8418_simpletest.py +++ b/examples/tca8418_simpletest.py @@ -7,6 +7,7 @@ from adafruit_tca8418 import TCA8418 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller tca = TCA8418(i2c) # setup R0 as an output GPIO