From e5fdfb3cafb9a2b0c0c898481cb9a5189c017797 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/pcf8575_blink16outputs.py | 3 ++- examples/pcf8575_buttonled.py | 3 ++- examples/pcf8575_read16inputs.py | 3 ++- examples/pcf8575_simpletest.py | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/pcf8575_blink16outputs.py b/examples/pcf8575_blink16outputs.py index e8d5e44..acfb671 100644 --- a/examples/pcf8575_blink16outputs.py +++ b/examples/pcf8575_blink16outputs.py @@ -8,7 +8,8 @@ print("PCF8575 16 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_pcf8575.PCF8575(i2c) while True: diff --git a/examples/pcf8575_buttonled.py b/examples/pcf8575_buttonled.py index d640eaa..f4ec4c4 100644 --- a/examples/pcf8575_buttonled.py +++ b/examples/pcf8575_buttonled.py @@ -9,7 +9,8 @@ print("PCF8575 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_pcf8575.PCF8575(i2c) # get a 'digitalio' like pin from the pcf diff --git a/examples/pcf8575_read16inputs.py b/examples/pcf8575_read16inputs.py index bdfb0c9..c211675 100644 --- a/examples/pcf8575_read16inputs.py +++ b/examples/pcf8575_read16inputs.py @@ -8,7 +8,8 @@ print("PCF8575 16 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_pcf8575.PCF8575(i2c) diff --git a/examples/pcf8575_simpletest.py b/examples/pcf8575_simpletest.py index e8226f8..67d96f2 100644 --- a/examples/pcf8575_simpletest.py +++ b/examples/pcf8575_simpletest.py @@ -8,7 +8,8 @@ print("PCF8575 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_pcf8575.PCF8575(i2c) # get a 'digitalio' like pin from the pcf