Hi!
I am trying to interface analog devices accelerometer ADXL 345 with arduino MEGA. I want to be able to use I2C to do it.
I was able to get raw data from the accelerometer when i used Arduino Pro, but when working with Mega it does not give out raw values.
The code is the same, and since mega has its SDA and SCL pins as 20 and 21 respectively, I have hooked up the SDA and SCL lines to those pins.
In short what works with arduino pro, is not working with mega. I am using 3.3V supply from the mega.
How can I resolve this?