Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/lis3mdl_compass.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import adafruit_lis3mdl

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


Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_data_rate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from adafruit_lis3mdl import LIS3MDL, Rate, PerformanceMode

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

current_rate = Rate.RATE_155_HZ
Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_lsm6ds_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from adafruit_lis3mdl import LIS3MDL

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

Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_range_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from adafruit_lis3mdl import LIS3MDL, Range

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

while True:
Expand Down
1 change: 1 addition & 0 deletions examples/lis3mdl_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import adafruit_lis3mdl

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

while True:
Expand Down