.gitea | ||
data | ||
doc | ||
.gitignore | ||
i2c.c | ||
i2c.h | ||
lis3dh.c | ||
lis3dh.h | ||
main.c | ||
Makefile | ||
plot.gp | ||
README.md | ||
registers.h |
LIS3DH
3-axis accelerometer
$ ./lis3dh
x: 0.5520 g, y: -0.8800 g, z: 0.0760 g, mag: 1.0416
x: 0.5560 g, y: -0.9000 g, z: -0.0040 g, mag: 1.0579
x: 0.5840 g, y: -0.8680 g, z: 0.0360 g, mag: 1.0468
x: 0.5440 g, y: -0.8680 g, z: 0.0920 g, mag: 1.0285
x: 0.5240 g, y: -0.9000 g, z: -0.0600 g, mag: 1.0432
x: 0.6040 g, y: -0.8960 g, z: 0.1000 g, mag: 1.0852
x: 0.5440 g, y: -0.8680 g, z: 0.0000 g, mag: 1.0244
x: 0.5720 g, y: -0.9040 g, z: -0.0160 g, mag: 1.0699
x: 0.5480 g, y: -0.8680 g, z: 0.0200 g, mag: 1.0267
x: 0.5360 g, y: -0.9120 g, z: 0.0240 g, mag: 1.0581
x: 0.5600 g, y: -0.9040 g, z: 0.0000 g, mag: 1.0634
x: 0.5960 g, y: -0.8760 g, z: 0.0640 g, mag: 1.0615
x: 0.5360 g, y: -0.8960 g, z: -0.0040 g, mag: 1.0441
x: 0.5320 g, y: -0.8800 g, z: -0.0080 g, mag: 1.0283
x: 0.5520 g, y: -0.9000 g, z: -0.0440 g, mag: 1.0567
x: 0.5760 g, y: -0.8800 g, z: 0.0320 g, mag: 1.0522
x: 0.5560 g, y: -0.8840 g, z: -0.0240 g, mag: 1.0446
x: 0.5120 g, y: -0.9040 g, z: -0.0360 g, mag: 1.0395
x: 0.6000 g, y: -0.8720 g, z: 0.0320 g, mag: 1.0590
FIFO demo:
$ ./lis3dh
FIFO =>
x: 0.5280, y: -0.8760, z: -0.0080
x: 0.5320, y: -0.8920, z: -0.0120
x: 0.5280, y: -0.8680, z: -0.0040
x: 0.5280, y: -0.8800, z: 0.0080
x: 0.5400, y: -0.8920, z: 0.0120
x: 0.5400, y: -0.8960, z: 0.0120
x: 0.5400, y: -0.8960, z: 0.0000
x: 0.5560, y: -0.8840, z: -0.0040
x: 0.5360, y: -0.8840, z: -0.0160
x: 0.5560, y: -0.8840, z: -0.0040
x: 0.5320, y: -0.8960, z: 0.0080
x: 0.5400, y: -0.8880, z: -0.0040
x: 0.5320, y: -0.8800, z: 0.0000
x: 0.5560, y: -0.8920, z: 0.0120
x: 0.5280, y: -0.8680, z: -0.0120
x: 0.5440, y: -0.8760, z: 0.0000
x: 0.5520, y: -0.8880, z: -0.0040
x: 0.5400, y: -0.8840, z: -0.0160
x: 0.5560, y: -0.8840, z: -0.0040
x: 0.5360, y: -0.8840, z: -0.0040
x: 0.5360, y: -0.8880, z: -0.0160
x: 0.5560, y: -0.8920, z: 0.0080
x: 0.5400, y: -0.8880, z: -0.0120
x: 0.5560, y: -0.8840, z: -0.0160
x: 0.5480, y: -0.8800, z: 0.0040
x: 0.5520, y: -0.8880, z: -0.0040
x: 0.5280, y: -0.8680, z: -0.0160
x: 0.5560, y: -0.8920, z: -0.0040
x: 0.5400, y: -0.8840, z: -0.0040
x: 0.5360, y: -0.8880, z: -0.0080
x: 0.5280, y: -0.8680, z: -0.0120
x: 0.5480, y: -0.8880, z: -0.0120
<= FIFO