First time using an non Arduino device and I’m running into an issue with my XIAO when I try to use the “#include <MPU6050.h>” library.
The error I am getting is:
C:\Users\RogueMike\Documents\Arduino\libraries\MPU6050\MPU6050.cpp: In member function ‘int8_t MPU6050::GetCurrentFIFOPacket(uint8_t*, uint8_t)’:
C:\Users\RogueMike\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:2763:32: error: ‘BUFFER_LENGTH’ was not declared in this scope
uint8_t Trash[BUFFER_LENGTH];
^~~~~~~~~~~~~
C:\Users\RogueMike\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:2763:32: note: suggested alternative: ‘REG_DSU_LENGTH’
uint8_t Trash[BUFFER_LENGTH];
^~~~~~~~~~~~~
REG_DSU_LENGTH
C:\Users\RogueMike\Documents\Arduino\libraries\MPU6050\MPU6050.cpp:2769:39: error: ‘Trash’ was not declared in this scope
getFIFOBytes(Trash, (uint8_t)RemoveBytes);
^~~~~
exit status 1
Error compiling for board Seeeduino XIAO.
I tried to dig around in the .cpp file a bit and found the line it doesn’t like but I honestly have no idea what to alter here or if I just need a completely different library for it. I did Google around for another but never found a MPU6050 Lib for XIAO.