Skip to content

Commit a861036

Browse files
committed
adding note
1 parent 97e4419 commit a861036

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Usage Example
6565
import board
6666
import adafruit_lis331
6767
68-
i2c = board.I2C()
68+
i2c = board.I2C() # uses board.SCL and board.SDA
6969
lis = adafruit_lis331.LIS331(i2c)
7070
7171
while True:

adafruit_lis331.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ class LIS331HH(LIS331):
409409
410410
.. code-block:: python
411411
412-
i2c = board.I2C()
412+
i2c = board.I2C() # uses board.SCL and board.SDA
413413
lis = adafruit_lis331.LIS331HH(i2c)
414414
415415
Now you have access to the :attr:`acceleration` attribute
@@ -448,7 +448,7 @@ class H3LIS331(LIS331):
448448
449449
.. code-block:: python
450450
451-
i2c = board.I2C()
451+
i2c = board.I2C() # uses board.SCL and board.SDA
452452
lis = adafruit_lis331.H3LIS331(i2c)
453453
454454
Now you have access to the :attr:`acceleration` attribute

examples/lis331_high_pass_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import board
66
import adafruit_lis331
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
99
# un-comment the sensor you are using
1010
# lis = H3LIS331(i2c)
1111
lis = adafruit_lis331.LIS331HH(i2c)

examples/lis331_low_pass_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import board
66
from adafruit_lis331 import LIS331HH, Rate, Frequency
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
99

1010
# un-comment the sensor you are using
1111
# lis = H3LIS331(i2c)

examples/lis331_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import board
66
import adafruit_lis331
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
99
lis = adafruit_lis331.LIS331HH(i2c)
1010

1111
while True:

0 commit comments

Comments
 (0)