dennisma Posted May 9, 2014 Report Share Posted May 9, 2014 I only want to read the sensor on certain occasions (say maybe every 4 seconds or so). I can make the code work by simply not getting the data but the FIFO overflows. I can reset the FIFO but that seems ugly and one post said have said FIFO overflows have bad side effects (I've had some occasional hanging). I thought a call to setSleepEnabled(true); and then call setSleepEnabled(false) before grabbing the data would work but that doesn't seem to. Is there a way to accomplish this? Quote Link to comment Share on other sites More sharing options...
luisrodenas Posted May 9, 2014 Report Share Posted May 9, 2014 Change FIFO's frequency and put the lowest one. It can be changed at the beggining of the library, where there are lots of configuration bytes together, read code comments of that section. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.