Skip to content

Commit c8ed97d

Browse files
authored
Merge pull request #4 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 1de81b3 + 85189ed commit c8ed97d

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/pcf8574_blink8outputs.py

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

1010
print("PCF8574 8 output LED blink 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_pcf8574.PCF8574(i2c)
1415

1516

examples/pcf8574_buttonled.py

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

1111
print("PCF8574 digitalio LED + button test")
1212

13-
i2c = board.I2C()
13+
i2c = board.I2C() # uses board.SCL and board.SDA
14+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1415
pcf = adafruit_pcf8574.PCF8574(i2c)
1516

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

examples/pcf8574_read8inputs.py

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

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

1516

examples/pcf8574_simpletest.py

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

1010
print("PCF8574 digitalio LED blink 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_pcf8574.PCF8574(i2c)
1415

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

0 commit comments

Comments
 (0)