Go to the source code of this file.
◆ ACCELERATION_RANGE_CONFIG_MP6050
◆ TAG_MPU6050
| #define TAG_MPU6050 "MPU6050" |
◆ mpu6050_c_init()
Initialize MPU6050 descriptor for reading acceleration.
- Parameters
-
| dev | pointer where the descriptor will be stored. |
- Returns
- esp_err_t ESP_OK if success.
◆ mpu6050_c_read()
Read data from MPU6050 and store linear acceleration (m/s^2) and angular acceleration (º/s^2).
- Parameters
-
| dev | pointer to the MPU6050 device descriptor. |
| accel | pointer where the linear acceleration readings will be stored (m/s^2). |
| rot | pointer where the angular acceleration readings will be stored (º/s^2). |