Hi, I'm currently doing a project where I use a Berry IMU v3 to an Arduino Pro mini 328 5V. I connected the two using the I2c interface and copied and pasted the code the manufacturer made here with no changes: BerryIMU/arduino-BerryIMU at master · ozzmaker/BerryIMU · GitHub. The problem is, when I upload the code to the Arduino, I don't get any Serial Monitor output. I am on the current baud rate but nothing inside the "loop" method of the "arduino-BerryIMU.ino" is running. I only get serial monitor output when I comment out the enableIMU() method call. There is something wrong with this function that is causing this issue but I don't what is wrong. I commented out the readFrom() method inside "IMU.cpp" because it is throwing me errors. My wiring is correct and according to the side. I checked the i2c addresses that it defined and they were correct.
The errors in "IMU.cpp" say:
warning: invalid conversion from 'byte {aka unsigned char}' to 'byte* {aka unsigned char}' [-fpermissive]
readFrom(LSM6DSL_ADDRESS,LIS3MDL_CTRL_REG3,1, temp);
initializing argument 4 of 'void readFrom(int, byte, int, byte)'
void readFrom(int device, byte address, int num, byte buff[ ]) {