We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2638c97 commit 826e48fCopy full SHA for 826e48f
firmware-g473/Core/User/lsm6.cc
@@ -21,6 +21,9 @@ void Lsm6Configure(
21
SensorInputWriteImuReg(
22
static_cast<uint8_t>(Lsm6Reg::CTRL2_G),
23
(static_cast<uint8_t>(data_rate) << 4) | (static_cast<uint8_t>(gyro_full_scale) << 0));
24
+ SensorInputWriteImuReg(
25
+ static_cast<uint8_t>(Lsm6Reg::CTRL4_C),
26
+ 0b00000100); // I2C_disable
27
28
static_cast<uint8_t>(Lsm6Reg::INT2_CTRL),
29
0b00000011); // INT2_DRDY_G, INT2_DRDY_XL
0 commit comments