Skip to content

Commit 8c4a695

Browse files
committed
line-to-long; I'm addicted to word wrap
1 parent 23c2c88 commit 8c4a695

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

adafruit_lsm9ds1.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,15 @@ class LSM9DS1_I2C(LSM9DS1):
367367
368368
:param ~busio.I2C i2c: The I2C bus object used to connect to the LSM9DS1.
369369
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.
371372
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``.
378+
Defaults to ``0x6B``.
374379
375380
"""
376381

@@ -380,7 +385,8 @@ def __init__(self, i2c, mag_address=_LSM9DS1_ADDRESS_MAG, xg_address=_LSM9DS1_AD
380385
self._xg_device = i2c_device.I2CDevice(i2c, xg_address)
381386
super().__init__()
382387
else:
383-
raise ValueError('address parmeters are incorrect. Read the docs at https://circuitpython.readthedocs.io/projects/lsm9ds1/en/latest/api.html#adafruit_lsm9ds1.LSM9DS1_I2C')
388+
raise ValueError('address parmeters are incorrect. Read the docs at '
389+
'https://circuitpython.rtfd.io/projects/lsm9ds1/en/latest/api.html#adafruit_lsm9ds1.LSM9DS1_I2C')
384390

385391
def _read_u8(self, sensor_type, address):
386392
if sensor_type == _MAGTYPE:
@@ -417,10 +423,13 @@ class LSM9DS1_SPI(LSM9DS1):
417423
418424
:param ~busio.SPI spi: The SPI bus object used to connect to the LSM9DS1.
419425
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.
421428
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
432+
LSM9DS1's CSAG (Chip Select Accelerometer/Gyroscope) pin.
424433
425434
"""
426435
# pylint: disable=no-member

0 commit comments

Comments
 (0)