def __init__(self, spi, xgcs, mcs): self._mag_device = spi_device.I2CDevice(spi, mcs) self._xg_device = spi_device.I2CDevice(spi, xgcs) super().__init__()
def __init__(self, spi, xmcs, gcs): self._gyro_device = spi_device.I2CDevice(spi, gcs) self._xm_device = spi_device.I2CDevice(spi, xmcs) super().__init__()