|
53 | 53 | except ImportError: |
54 | 54 | import ustruct as struct |
55 | 55 |
|
56 | | -import adafruit_bus_device.i2c_device as i2c_dev |
57 | | -import adafruit_bus_device.spi_device as spi_dev |
| 56 | +import adafruit_bus_device.i2c_device as i2c_device |
| 57 | +import adafruit_bus_device.spi_device as spi_device |
58 | 58 |
|
59 | 59 | from micropython import const |
60 | 60 |
|
@@ -357,8 +357,8 @@ class LSM9DS0_I2C(LSM9DS0): |
357 | 357 | """Driver for the LSM9DS0 connected over I2C.""" |
358 | 358 |
|
359 | 359 | def __init__(self, i2c): |
360 | | - self._gyro_device = i2c_dev.I2CDevice(i2c, _LSM9DS0_ADDRESS_GYRO) |
361 | | - self._xm_device = i2c_dev.I2CDevice(i2c, _LSM9DS0_ADDRESS_ACCELMAG) |
| 360 | + self._gyro_device = i2c_device.I2CDevice(i2c, _LSM9DS0_ADDRESS_GYRO) |
| 361 | + self._xm_device = i2c_device.I2CDevice(i2c, _LSM9DS0_ADDRESS_ACCELMAG) |
362 | 362 | super().__init__() |
363 | 363 |
|
364 | 364 | def _read_u8(self, sensor_type, address): |
@@ -397,8 +397,8 @@ class LSM9DS0_SPI(LSM9DS0): |
397 | 397 | """Driver for the LSM9DS0 connected over SPI.""" |
398 | 398 | # pylint: disable=no-member |
399 | 399 | def __init__(self, spi, xmcs, gcs): |
400 | | - self._gyro_device = spi_dev.I2CDevice(spi, gcs) |
401 | | - self._xm_device = spi_dev.I2CDevice(spi, xmcs) |
| 400 | + self._gyro_device = spi_device.I2CDevice(spi, gcs) |
| 401 | + self._xm_device = spi_device.I2CDevice(spi, xmcs) |
402 | 402 | super().__init__() |
403 | 403 |
|
404 | 404 | def _read_u8(self, sensor_type, address): |
|
0 commit comments