Skip to content

Commit e011f8f

Browse files
authored
Merge pull request #38 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents f943cc5 + 483fa8d commit e011f8f

4 files changed

+4
-0
lines changed

examples/adxl34x_freefall_detection_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_adxl34x
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910

1011
# For ADXL343
1112
accelerometer = adafruit_adxl34x.ADXL343(i2c)

examples/adxl34x_motion_detection_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_adxl34x
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910

1011
# For ADXL343
1112
accelerometer = adafruit_adxl34x.ADXL343(i2c)

examples/adxl34x_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_adxl34x
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910

1011
# For ADXL343
1112
accelerometer = adafruit_adxl34x.ADXL343(i2c)

examples/adxl34x_tap_detection_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_adxl34x
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910

1011
# For ADXL343
1112
accelerometer = adafruit_adxl34x.ADXL343(i2c)

0 commit comments

Comments
 (0)