=== Read accelerometer axes ===
[[Image:Lis3dhxyzaxes.png{| border="1" cellspacing="1" cellpadding="1" width="200"|-|150x159px]] Finally we are going to read gravity force: LIS3DH has ±2g/±4g/±8g/±16g dynamically selectable full scale (See chapter 8.11). The axes values are expressed in two’s complement in 16 bits (See chapters 8.16, 8.17 and 8.18). | [[Image:Lis3dhxyzaxes.png|150x159px]]|} <br>
<pre>root@igep00x0:~# ./spiexampleb2 -T
spi mode: 0