Skip to content

Commit d33c25a

Browse files
authored
Merge pull request #74 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 5b47034 + 2716aac commit d33c25a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

examples/lis3dh_adc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
2222
else:
2323
i2c = board.I2C() # uses board.SCL and board.SDA
24+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
2425
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c)
2526

2627
# Hardware SPI setup:
@@ -29,7 +30,7 @@
2930
# lis3dh = adafruit_lis3dh.LIS3DH_SPI(spi, cs)
3031

3132
# PyGamer I2C Setup:
32-
# i2c = board.I2C(A)
33+
# i2c = board.I2C(A) # uses board.SCL and board.SDA
3334
# lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
3435

3536

examples/lis3dh_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)
1414
else:
1515
i2c = board.I2C() # uses board.SCL and board.SDA
16+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1617
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c)
1718

1819
# Hardware SPI setup:

examples/lis3dh_tap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19, int1=int1)
1616
else:
1717
i2c = board.I2C() # uses board.SCL and board.SDA
18+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1819
int1 = digitalio.DigitalInOut(
1920
board.D9
2021
) # Set this to the correct pin for the interrupt!

0 commit comments

Comments
 (0)