Skip to content

Commit 6b970c6

Browse files
authored
Merge pull request #2 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents d3abf1b + a75c0cc commit 6b970c6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/pcf8575_blink16outputs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
print("PCF8575 16 output LED blink test")
1010

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

1415
while True:

examples/pcf8575_buttonled.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
print("PCF8575 digitalio LED + button test")
1111

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

1516
# get a 'digitalio' like pin from the pcf

examples/pcf8575_read16inputs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
print("PCF8575 16 input button test")
1010

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

1415

examples/pcf8575_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
print("PCF8575 digitalio LED blink test")
1010

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

1415
# get a 'digitalio' like pin from the pcf

0 commit comments

Comments
 (0)