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 99
1010print ("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
1314pcf = adafruit_pcf8574 .PCF8574 (i2c )
1415
1516
Original file line number Diff line number Diff line change 1010
1111print ("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
1415pcf = adafruit_pcf8574 .PCF8574 (i2c )
1516
1617# get a 'digitalio' like pin from the pcf
Original file line number Diff line number Diff line change 99
1010print ("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
1314pcf = adafruit_pcf8574 .PCF8574 (i2c )
1415
1516
Original file line number Diff line number Diff line change 99
1010print ("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
1314pcf = adafruit_pcf8574 .PCF8574 (i2c )
1415
1516# get a 'digitalio' like pin from the pcf
You can’t perform that action at this time.
0 commit comments