Skip to content

Commit a5a8dfb

Browse files
committed
adding_note
1 parent d760fbf commit a5a8dfb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Usage Example
6262
import board
6363
import adafruit_lis2mdl
6464
65-
i2c = board.I2C()
65+
i2c = board.I2C() # uses board.SCL and board.SDA
6666
sensor = adafruit_lis2mdl.LIS2MDL(i2c)
6767
6868
while True:

adafruit_lis2mdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class LIS2MDL: # pylint: disable=too-many-instance-attributes
105105
106106
.. code-block:: python
107107
108-
i2c = board.I2C()
108+
i2c = board.I2C() # uses board.SCL and board.SDA
109109
sensor = adafruit_lis2mdl.LIS2MDL(i2c)
110110
111111
Now you have access to the :attr:`magnetic` attribute

examples/lis2mdl_calibrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import board
88
import adafruit_lis2mdl
99

10-
i2c = board.I2C()
10+
i2c = board.I2C() # uses board.SCL and board.SDA
1111
magnetometer = adafruit_lis2mdl.LIS2MDL(i2c)
1212

1313
# calibration for magnetometer X (min, max), Y and Z

examples/lis2mdl_compass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import board
99
import adafruit_lis2mdl
1010

11-
i2c = board.I2C()
11+
i2c = board.I2C() # uses board.SCL and board.SDA
1212
sensor = adafruit_lis2mdl.LIS2MDL(i2c)
1313

1414
# You will need the calibration values from your magnetometer calibration

examples/lis2mdl_interrupt.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_lis2mdl
77

8-
i2c = board.I2C()
8+
i2c = board.I2C() # uses board.SCL and board.SDA
99
lis = adafruit_lis2mdl.LIS2MDL(i2c)
1010
lis.interrupt_threshold = 80
1111
lis.interrupt_enabled = True

examples/lis2mdl_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import board
88
import adafruit_lis2mdl
99

10-
i2c = board.I2C()
10+
i2c = board.I2C() # uses board.SCL and board.SDA
1111
sensor = adafruit_lis2mdl.LIS2MDL(i2c)
1212

1313
while True:

0 commit comments

Comments
 (0)