File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
print ("PCF8574 8 output LED blink test" )
11
11
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
13
14
pcf = adafruit_pcf8574 .PCF8574 (i2c )
14
15
15
16
Original file line number Diff line number Diff line change 10
10
11
11
print ("PCF8574 digitalio LED + button test" )
12
12
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
14
15
pcf = adafruit_pcf8574 .PCF8574 (i2c )
15
16
16
17
# get a 'digitalio' like pin from the pcf
Original file line number Diff line number Diff line change 9
9
10
10
print ("PCF8574 8 input button test" )
11
11
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
13
14
pcf = adafruit_pcf8574 .PCF8574 (i2c )
14
15
15
16
Original file line number Diff line number Diff line change 9
9
10
10
print ("PCF8574 digitalio LED blink test" )
11
11
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
13
14
pcf = adafruit_pcf8574 .PCF8574 (i2c )
14
15
15
16
# get a 'digitalio' like pin from the pcf
You can’t perform that action at this time.
0 commit comments