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