Skip to content

Commit

Permalink
Merge pull request #2 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 d3abf1b + a75c0cc commit 6b970c6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/pcf8575_blink16outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

print("PCF8575 16 output LED blink test")

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

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

print("PCF8575 digitalio LED + button test")

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

# get a 'digitalio' like pin from the pcf
Expand Down
3 changes: 2 additions & 1 deletion examples/pcf8575_read16inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

print("PCF8575 16 input button test")

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


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

print("PCF8575 digitalio LED blink test")

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

# get a 'digitalio' like pin from the pcf
Expand Down

0 comments on commit 6b970c6

Please sign in to comment.