i have project app_ble_uart and i want add to it functin read from mpu6050 i add to Makefile Makefile pathes and add #include "mpu6050.h" and InitMPU6050(0x68); into main main.c but i have error
./../../main.c: In function 'main':
../../../main.c:653:5: error: implicit declaration of function 'InitMPU6050' [-Werror=implicit-function-declaration]
cc1.exe: all warnings being treated as errors
make: *** [_build/nrf52832_xxaa_main.c.o] Error 1
../../../../../../components/toolchain/gcc/Makefile.common:134: recipe for target '_build/nrf52832_xxaa_main.c.o' failed
What i do wrong?
Are you trying to include the MPU6050 driver that is present in the SDK? This driver does not have any functions with the name InitMPU6050. Try with mpu6050_init(0x68) instead.
If you are trying…
Sorry, I did not know that the MPU6050 driver did use a deprecated TWI driver. I do not recommend using this. Please have a look at this thread. You should be able to rewrite the driver to work with the…
If you are trying to add another MPU6050 library, you need to include the path to the correct header files in your Makefile.
Sorry, I did not know that the MPU6050 driver did use a deprecated TWI driver. I do not recommend using this. Please have a look at this thread. You should be able to rewrite the driver to work with the standard TWI master driver, without too many changes. I would also recommend you to take a look at this GitHub repository by Martin, which contains drivers and examples for various MPU models.