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 8
8
9
9
print ("PCF8575 16 output LED blink test" )
10
10
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
12
13
pcf = adafruit_pcf8575 .PCF8575 (i2c )
13
14
14
15
while True :
Original file line number Diff line number Diff line change 9
9
10
10
print ("PCF8575 digitalio LED + 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_pcf8575 .PCF8575 (i2c )
14
15
15
16
# get a 'digitalio' like pin from the pcf
Original file line number Diff line number Diff line change 8
8
9
9
print ("PCF8575 16 input button test" )
10
10
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
12
13
pcf = adafruit_pcf8575 .PCF8575 (i2c )
13
14
14
15
Original file line number Diff line number Diff line change 8
8
9
9
print ("PCF8575 digitalio LED blink test" )
10
10
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
12
13
pcf = adafruit_pcf8575 .PCF8575 (i2c )
13
14
14
15
# get a 'digitalio' like pin from the pcf
You can’t perform that action at this time.
0 commit comments