From b5c009b58f34c4bb1aa8b6ef1d23339b165bfc46 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:28 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/pcf8574_blink8outputs.py | 3 ++- examples/pcf8574_buttonled.py | 3 ++- examples/pcf8574_read8inputs.py | 3 ++- examples/pcf8574_simpletest.py | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/pcf8574_blink8outputs.py b/examples/pcf8574_blink8outputs.py index f9c7c67..05a8790 100644 --- a/examples/pcf8574_blink8outputs.py +++ b/examples/pcf8574_blink8outputs.py @@ -9,7 +9,8 @@ print("PCF8574 8 output LED blink test") -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller pcf = adafruit_pcf8574.PCF8574(i2c) diff --git a/examples/pcf8574_buttonled.py b/examples/pcf8574_buttonled.py index 62dcbd2..fb76772 100644 --- a/examples/pcf8574_buttonled.py +++ b/examples/pcf8574_buttonled.py @@ -10,7 +10,8 @@ print("PCF8574 digitalio LED + button test") -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller pcf = adafruit_pcf8574.PCF8574(i2c) # get a 'digitalio' like pin from the pcf diff --git a/examples/pcf8574_read8inputs.py b/examples/pcf8574_read8inputs.py index 8e5e5c7..d1fc817 100644 --- a/examples/pcf8574_read8inputs.py +++ b/examples/pcf8574_read8inputs.py @@ -9,7 +9,8 @@ print("PCF8574 8 input button test") -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller pcf = adafruit_pcf8574.PCF8574(i2c) diff --git a/examples/pcf8574_simpletest.py b/examples/pcf8574_simpletest.py index 3a68c25..d91a049 100644 --- a/examples/pcf8574_simpletest.py +++ b/examples/pcf8574_simpletest.py @@ -9,7 +9,8 @@ print("PCF8574 digitalio LED blink test") -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller pcf = adafruit_pcf8574.PCF8574(i2c) # get a 'digitalio' like pin from the pcf