Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/tca8418_3x4_OLED.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_3x4_noOLED.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_digitalio_blink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_digitalio_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_gpio_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_gpiobutton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_keypad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/tca8418_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down