eagle1109
Full Member level 6
- Joined
- Nov 20, 2014
- Messages
- 390
- Helped
- 4
- Reputation
- 10
- Reaction score
- 7
- Trophy points
- 1,298
- Location
- Saudi Arabia
- Activity points
- 5,929
Hello,
I want to express my problem very clear:
I'm developing my own libraries for Arduino boards with Arduino IDE, but I write my codes in C, I may change the library source file extension to .cpp for Arduino compatibility.
What I did until now:
1. Library for I2C.
2. Library for HMC5883L.
And included them in Arduino libraries folder.
Then, I wrote a small program in Arduino IDE to run the HMC5883L and display the values on the Arduino IDE's serial monitor.
So, the code is running well except one little problem! The serial monitor crashes the value of x-axis changes to the positive values, e.g. zero and above.
What could be the problem? And what files should I upload for you to help me?
Regards,
I want to express my problem very clear:
I'm developing my own libraries for Arduino boards with Arduino IDE, but I write my codes in C, I may change the library source file extension to .cpp for Arduino compatibility.
What I did until now:
1. Library for I2C.
2. Library for HMC5883L.
And included them in Arduino libraries folder.
Then, I wrote a small program in Arduino IDE to run the HMC5883L and display the values on the Arduino IDE's serial monitor.
So, the code is running well except one little problem! The serial monitor crashes the value of x-axis changes to the positive values, e.g. zero and above.
What could be the problem? And what files should I upload for you to help me?
Regards,