Community forums

MS5611 jumping values


#21

Hi.

I’m sorry to reopen this post but I’m trying your code Leo and I have one error when I try to compile it. I’m using the IMU 10DOF from drotek with the MS5611 and a teensy 3.2.
I’m a begginer and I would like to calculate the altitude thanks to the MS5611.

On this line : C* = Wire.read() << 8 | Wire.read();
Arduino tells me : expected primary-expression before ‘=’ token

and on this following line : Serial.print(“C”); Serial.print(i); Serial.print(" = "); Serial.println(C*);
Arduino tells me : expected primary-expression before ‘)’ token

I think it’s because of the C* but I’m not sure.

Thank you for your response.


#22

I see this is a new forum software.
I guess through the conversion from the old software some errors in the code creped up.

C* should be C[i]

Leo


#23

Thank you very much


#24

Hi Leo,Your code is good.Can you provide the code in SPI Mode .

Thanks in advance