
DVK512 User Manual
Waveshare
17
V2.4, Jan. 21, 2015
shows.
Figure 16: Connecting the LSM303DLHC module to the I2C interface on DVK512
Notices: LSM303DLHC module has two rows of pins, and the one connected to
DVK512 contains the pins SDA and SCL.
2)
Enter the terminal, and input:
root@ raspberrypi:/#
LSM303
3)
The terminal will display the relative values read from acceleration of gravity and
magnetic sensor, as Figure 17 shows.
Figure 17: Relative values read from acceleration of gravity and magnetic sensor