|
55 | 55 | except ImportError:
|
56 | 56 | import ustruct as struct
|
57 | 57 |
|
58 |
| -import adafruit_bus_device.i2c_device as i2c_dev |
59 |
| -import adafruit_bus_device.spi_device as spi_dev |
| 58 | +import adafruit_bus_device.i2c_device as i2c_device |
| 59 | +import adafruit_bus_device.spi_device as spi_device |
60 | 60 | from micropython import const
|
61 | 61 |
|
62 | 62 | # Internal constants and register values:
|
@@ -366,8 +366,8 @@ class LSM9DS1_I2C(LSM9DS1):
|
366 | 366 | """Driver for the LSM9DS1 connect over I2C."""
|
367 | 367 |
|
368 | 368 | def __init__(self, i2c):
|
369 |
| - self._mag_device = i2c_dev.I2CDevice(i2c, _LSM9DS1_ADDRESS_MAG) |
370 |
| - self._xg_device = i2c_dev.I2CDevice(i2c, _LSM9DS1_ADDRESS_ACCELGYRO) |
| 369 | + self._mag_device = i2c_device.I2CDevice(i2c, _LSM9DS1_ADDRESS_MAG) |
| 370 | + self._xg_device = i2c_device.I2CDevice(i2c, _LSM9DS1_ADDRESS_ACCELGYRO) |
371 | 371 | super().__init__()
|
372 | 372 |
|
373 | 373 | def _read_u8(self, sensor_type, address):
|
@@ -406,8 +406,8 @@ class LSM9DS1_SPI(LSM9DS1):
|
406 | 406 | """Driver for the LSM9DS1 connect over SPI."""
|
407 | 407 | # pylint: disable=no-member
|
408 | 408 | def __init__(self, spi, xgcs, mcs):
|
409 |
| - self._mag_device = spi_dev.I2CDevice(spi, mcs) |
410 |
| - self._xg_device = spi_dev.I2CDevice(spi, xgcs) |
| 409 | + self._mag_device = spi_device.I2CDevice(spi, mcs) |
| 410 | + self._xg_device = spi_device.I2CDevice(spi, xgcs) |
411 | 411 | super().__init__()
|
412 | 412 |
|
413 | 413 | def _read_u8(self, sensor_type, address):
|
|
0 commit comments