I bought a Grove - 3-Axis Digital Accelerometer, after wiring it with the
Arduino Leonardo board and launching the demo program I always get
the following result:
x = 0
y = 0
z = 0
acceleration of X/Y/Z:
0.00 g
0.00 g
0.00 g
*************
oh!
The shield could be the source of the problem - the location of i2c
pins on arduino Uno is different from their location on Leonardo,
(as it is written in the Wire library documentationhttp://arduino.cc/en/Reference/Wire)
the shield is maybe projected for Uno.
So, now the question is - how to wire correctly the accelerometer to
Leonardo without using shields?