Thread
:
Acceleration Sensor API
View Single Post
CrashandDie
2009-10-22 , 10:50
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).
Quote & Reply
|
CrashandDie
View Public Profile
Send a private message to CrashandDie
Find all posts by CrashandDie