@@ -368,25 +368,27 @@ class LSM9DS1_I2C(LSM9DS1):
368
368
:param ~busio.I2C i2c: The I2C bus object used to connect to the LSM9DS1.
369
369
370
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
+ same I2C bus (SDA & SCL pins) to connect to different I2C devices.
372
372
373
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``.
374
+ LSM9DS1's magnetometer. Options are limited to ``0x1C`` or ``0x1E``.
375
+ Defaults to ``0x1E``.
376
+
376
377
: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``.
379
380
380
381
"""
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 ):
383
384
if mag_address in (0x1c , 0x1e ) and xg_address in (0x6a , 0x6b ):
384
385
self ._mag_device = i2c_device .I2CDevice (i2c , mag_address )
385
386
self ._xg_device = i2c_device .I2CDevice (i2c , xg_address )
386
387
super ().__init__ ()
387
388
else :
388
389
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' )
390
392
391
393
def _read_u8 (self , sensor_type , address ):
392
394
if sensor_type == _MAGTYPE :
@@ -424,12 +426,13 @@ class LSM9DS1_SPI(LSM9DS1):
424
426
:param ~busio.SPI spi: The SPI bus object used to connect to the LSM9DS1.
425
427
426
428
.. 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.
428
430
429
431
: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
+
431
434
: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.
433
436
434
437
"""
435
438
# pylint: disable=no-member
0 commit comments