Skip to content

Commit 4391574

Browse files
authored
Merge pull request #11 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 8d86d6b + 78abd5f commit 4391574

8 files changed

+8
-0
lines changed

examples/tca8418_3x4_OLED.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
oled_reset = board.D1
1616

1717
i2c = board.I2C() # uses board.SCL and board.SDA
18+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1819
tca = TCA8418(i2c)
1920
display_bus = displayio.I2CDisplay(i2c, device_address=0x3D, reset=oled_reset)
2021

examples/tca8418_3x4_noOLED.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_tca8418 import TCA8418
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
tca = TCA8418(i2c)
1112

1213
keymap = (("*", "0", "#"), ("7", "8", "9"), ("4", "5", "6"), ("1", "2", "3"))

examples/tca8418_digitalio_blink.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_tca8418 import TCA8418
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
tca = TCA8418(i2c)
1112

1213
# get a 'digitalio' like pin from the tca

examples/tca8418_digitalio_button.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from adafruit_tca8418 import TCA8418
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
tca = TCA8418(i2c)
1213

1314
# get a 'digitalio' like pins from the tca

examples/tca8418_gpio_fifo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from adafruit_tca8418 import TCA8418
99

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

1213
debug_i2c = DebugI2C(i2c)
1314

examples/tca8418_gpiobutton.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_tca8418 import TCA8418
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
tca = TCA8418(i2c)
1112

1213
# setup 2 gpio: LED on R0 and button in R1

examples/tca8418_keypad.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_tca8418 import TCA8418
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
tca = TCA8418(i2c)
1112

1213
# set up all R0-R4 pins and C0-C3 pins as keypads

examples/tca8418_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from adafruit_tca8418 import TCA8418
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
tca = TCA8418(i2c)
1112

1213
# setup R0 as an output GPIO

0 commit comments

Comments
 (0)