Skip to content

Commit

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

print("PCF8574 8 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_pcf8574.PCF8574(i2c)


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

print("PCF8574 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_pcf8574.PCF8574(i2c)

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

print("PCF8574 8 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_pcf8574.PCF8574(i2c)


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

print("PCF8574 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_pcf8574.PCF8574(i2c)

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

0 comments on commit c8ed97d

Please sign in to comment.