Skip to content

Commit

Permalink
Merge pull request #43 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada authored Nov 28, 2022
2 parents 306e92b + 5bd7cd2 commit 9ddd596
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/apds9960_color_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
from adafruit_apds9960.apds9960 import APDS9960
from adafruit_apds9960 import colorutility

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
apds = APDS9960(i2c)
apds.enable_color = True

Expand Down
3 changes: 2 additions & 1 deletion examples/apds9960_gesture_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import board
from adafruit_apds9960.apds9960 import APDS9960

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

apds = APDS9960(i2c)
apds.enable_proximity = True
Expand Down
3 changes: 2 additions & 1 deletion examples/apds9960_proximity_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import digitalio
from adafruit_apds9960.apds9960 import APDS9960

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
int_pin = digitalio.DigitalInOut(board.D5)
int_pin.switch_to_input(pull=digitalio.Pull.UP)
apds = APDS9960(i2c)
Expand Down
3 changes: 2 additions & 1 deletion examples/apds9960_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import board
from adafruit_apds9960.apds9960 import APDS9960

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
apds = APDS9960(i2c)

apds.enable_proximity = True
Expand Down

0 comments on commit 9ddd596

Please sign in to comment.