28 MotionComponent::setup();
51 if (who_am_i != ICM20689_WHO_AM_I_VALUE) {
52 ESP_LOGE(TAG,
"Unexpected WHO_AM_I 0x%02X (expected 0x%02X) -- check wiring/CS", who_am_i, ICM20689_WHO_AM_I_VALUE);
82 const uint8_t accel_range =
static_cast<uint8_t
>(this->
accel_range_);
83 const uint8_t gyro_range =
static_cast<uint8_t
>(this->
gyro_range_);
89 uint8_t raw_data[14] = {};
90 this->
read_registers_(ICM20689_REG_ACCEL_XOUT_H, raw_data,
sizeof(raw_data));
92 const float accel_factor = accel_scale(accel_range);
98 const float gyro_factor = gyro_scale(gyro_range);
104#ifdef USE_MOTION_TEMPERATURE_PUBLISHER
105 if (this->temperature_publisher_ !=
nullptr) {