Skip to content

Commit 293390e

Browse files
authored
Merge pull request #15 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents ec01c71 + a869c21 commit 293390e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

examples/lsm303_accel_fast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_lsm303_accel
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
sensor = adafruit_lsm303_accel.LSM303_Accel(i2c)
1112

1213
while True:

examples/lsm303_accel_inclinometer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
i2c = board.I2C() # uses board.SCL and board.SDA
13+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1314
sensor = adafruit_lsm303_accel.LSM303_Accel(i2c)
1415

1516

examples/lsm303_accel_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import adafruit_lsm303_accel
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
sensor = adafruit_lsm303_accel.LSM303_Accel(i2c)
1213

1314
while True:

examples/lsm303_accel_tap_detection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import adafruit_lsm303_accel
66

77
i2c = board.I2C() # uses board.SCL and board.SDA
8+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
89
accel = adafruit_lsm303_accel.LSM303_Accel(i2c)
910
accel.range = adafruit_lsm303_accel.Range.RANGE_8G
1011
accel.set_tap(1, 30)

0 commit comments

Comments
 (0)