Skip to content

Commit c195c3e

Browse files
committed
Added commented out board.STEMMA_I2C with explanation
1 parent b6083a5 commit c195c3e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

examples/adxl34x_freefall_detection_test.py

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)