sparkfun / SparkFun_LIS2DH12_Arduino_Library

Library for I2C communication with ST LIS2DH12 low power accelerometer
Other
15 stars 10 forks source link

How do I manage/access FIFO? #9

Closed mark-hahn closed 9 months ago

mark-hahn commented 9 months ago

I don't see any FIFO methods in the SPARKFUN_LIS2DH12 class. How do I manage/access the FIFO?

I need to periodically clear the FIFO, then later read the FIFO to get all samples since clearing it. How do I do this?

mark-hahn commented 9 months ago

I found out that I can access the register functions in lis2dh12_reg.h directly. I can use the fifo functions directly. I was hoping for something easier but this will do.