You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adafruit_lsm9ds1.py
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -367,10 +367,15 @@ class LSM9DS1_I2C(LSM9DS1):
367
367
368
368
:param ~busio.I2C i2c: The I2C bus object used to connect to the LSM9DS1.
369
369
370
-
.. note:: This object should be shared among other driver classes that use the same I2C bus (SDA & SCL pins) to connect to different I2C devices.
370
+
.. note:: This object should be shared among other driver classes that use the
371
+
same I2C bus (SDA & SCL pins) to connect to different I2C devices.
371
372
372
-
:param int mag_address: A 16-bit integer that represents the i2c address of the LSM9DS1's magnetometer. Options are limited to ``0x1C`` or ``0x1E``. Defaults to ``0x1E``.
373
-
:param int xg_address: A 16-bit integer that represents the i2c address of the LSM9DS1's accelerometer and gyroscope. Options are limited to ``0x6A`` or ``0x6B``. Defaults to ``0x6B``.
373
+
:param int mag_address: A 16-bit integer that represents the i2c address of the
374
+
LSM9DS1's magnetometer. Options are limited to ``0x1C`` or ``0x1E``.
375
+
Defaults to ``0x1E``.
376
+
:param int xg_address: A 16-bit integer that represents the i2c address of the
377
+
LSM9DS1's accelerometer and gyroscope. Options are limited to ``0x6A`` or ``0x6B``.
raiseValueError('address parmeters are incorrect. Read the docs at https://circuitpython.readthedocs.io/projects/lsm9ds1/en/latest/api.html#adafruit_lsm9ds1.LSM9DS1_I2C')
388
+
raiseValueError('address parmeters are incorrect. Read the docs at '
:param ~busio.SPI spi: The SPI bus object used to connect to the LSM9DS1.
419
425
420
-
.. note:: This object should be shared among other driver classes that use the same SPI bus (SCK, MISO, MOSI pins) to connect to different SPI devices.
426
+
.. note:: This object should be shared among other driver classes that use the
427
+
same SPI bus (SCK, MISO, MOSI pins) to connect to different SPI devices.
421
428
422
-
:param ~digitalio.DigitalInOut mcs: The digital output pin connected to the LSM9DS1's CSM (Chip Select Magnetometer) pin.
423
-
:param ~digitalio.DigitalInOut xgcs: The digital output pin connected to the LSM9DS1's CSAG (Chip Select Accelerometer/Gyroscope) pin.
429
+
:param ~digitalio.DigitalInOut mcs: The digital output pin connected to the
430
+
LSM9DS1's CSM (Chip Select Magnetometer) pin.
431
+
:param ~digitalio.DigitalInOut xgcs: The digital output pin connected to the
0 commit comments