Skip to content

Commit 4f19cc0

Browse files
committed
forgot I could run local checks w/ sphinx & pylint
1 parent 8c4a695 commit 4f19cc0

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

adafruit_lsm9ds1.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -368,25 +368,27 @@ class LSM9DS1_I2C(LSM9DS1):
368368
:param ~busio.I2C i2c: The I2C bus object used to connect to the LSM9DS1.
369369
370370
.. 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+
same I2C bus (SDA & SCL pins) to connect to different I2C devices.
372372
373373
: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``.
374+
LSM9DS1's magnetometer. Options are limited to ``0x1C`` or ``0x1E``.
375+
Defaults to ``0x1E``.
376+
376377
: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``.
378+
LSM9DS1's accelerometer and gyroscope. Options are limited to ``0x6A`` or ``0x6B``.
379+
Defaults to ``0x6B``.
379380
380381
"""
381-
382-
def __init__(self, i2c, mag_address=_LSM9DS1_ADDRESS_MAG, xg_address=_LSM9DS1_ADDRESS_ACCELGYRO):
382+
def __init__(self, i2c, mag_address=_LSM9DS1_ADDRESS_MAG,
383+
xg_address=_LSM9DS1_ADDRESS_ACCELGYRO):
383384
if mag_address in (0x1c, 0x1e) and xg_address in (0x6a, 0x6b):
384385
self._mag_device = i2c_device.I2CDevice(i2c, mag_address)
385386
self._xg_device = i2c_device.I2CDevice(i2c, xg_address)
386387
super().__init__()
387388
else:
388389
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')
390+
'circuitpython.rtfd.io/projects/lsm9ds1/en/latest'
391+
'/api.html#adafruit_lsm9ds1.LSM9DS1_I2C')
390392

391393
def _read_u8(self, sensor_type, address):
392394
if sensor_type == _MAGTYPE:
@@ -424,12 +426,13 @@ class LSM9DS1_SPI(LSM9DS1):
424426
:param ~busio.SPI spi: The SPI bus object used to connect to the LSM9DS1.
425427
426428
.. 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.
429+
same SPI bus (SCK, MISO, MOSI pins) to connect to different SPI devices.
428430
429431
:param ~digitalio.DigitalInOut mcs: The digital output pin connected to the
430-
LSM9DS1's CSM (Chip Select Magnetometer) pin.
432+
LSM9DS1's CSM (Chip Select Magnetometer) pin.
433+
431434
:param ~digitalio.DigitalInOut xgcs: The digital output pin connected to the
432-
LSM9DS1's CSAG (Chip Select Accelerometer/Gyroscope) pin.
435+
LSM9DS1's CSAG (Chip Select Accelerometer/Gyroscope) pin.
433436
434437
"""
435438
# pylint: disable=no-member

0 commit comments

Comments
 (0)