|
|
@@ -131,14 +131,16 @@ bool Icm20948::IsReady(void)
|
|
|
|
|
|
void Icm20948::Stop(void)
|
|
|
{
|
|
|
+// _spi->write_single_reg(_activeDevice, ub_0, B0_PWR_MGMT_2, 0x3F); // vypne vsetky senzory
|
|
|
+ _spi->write_single_reg(_activeDevice, ub_0, B0_INT_ENABLE_1, 0x0);
|
|
|
_sensor_ready = false;
|
|
|
- _spi->write_single_reg(_activeDevice, ub_0, B0_PWR_MGMT_2, 0x3F);
|
|
|
}
|
|
|
|
|
|
void Icm20948::Start(void)
|
|
|
{
|
|
|
+// _spi->write_single_reg(_activeDevice, ub_0, B0_PWR_MGMT_2, 0x0);
|
|
|
+ _spi->write_single_reg(_activeDevice, ub_0, B0_INT_ENABLE_1, 0x1);
|
|
|
_sensor_ready = true;
|
|
|
- _spi->write_single_reg(_activeDevice, ub_0, B0_PWR_MGMT_2, 0x0);
|
|
|
}
|
|
|
|
|
|
void Icm20948::Sleep(void)
|