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] InitMPU6050(0x68); ^~~~~~~~~~~ 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?
Hi,
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.
InitMPU6050
mpu6050_init(0x68)
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…