Skip to content

Commit

Permalink
Merge pull request #38 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 f943cc5 + 483fa8d commit e011f8f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/adxl34x_freefall_detection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_adxl34x

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

# For ADXL343
accelerometer = adafruit_adxl34x.ADXL343(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/adxl34x_motion_detection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_adxl34x

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

# For ADXL343
accelerometer = adafruit_adxl34x.ADXL343(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/adxl34x_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_adxl34x

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

# For ADXL343
accelerometer = adafruit_adxl34x.ADXL343(i2c)
Expand Down
1 change: 1 addition & 0 deletions examples/adxl34x_tap_detection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_adxl34x

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

# For ADXL343
accelerometer = adafruit_adxl34x.ADXL343(i2c)
Expand Down

0 comments on commit e011f8f

Please sign in to comment.