View Single Post
Posts: 336 | Thanked: 610 times | Joined on Apr 2008 @ France
#7
pinsh,

I suggest you look at the liqbase code, or the python Attitude program (both available from the repositories, liqbase is available from git somewhere).

Liqbase uses the accelerometer in the liqflow application, and also during the onedotzero event.

One point to remember when using the sysfs API:
- you need to open the file to get a new readout. Simply reading continuously doesn't work (same value returned over and over).