andy at openmoko.com
Thu Apr 3 15:47:44 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| Am Donnerstag, den 03.04.2008, 09:57 +0100 schrieb Andy Green:
|> We can wake up from one of the accelerometers and not the other -- which
|> is likely okay for real use -- but there is no driver support or API to
|> enable or disable it yet. I guess it can just expose something in /sys.
| Agreed. Can we program the threshold for the three axis individually? If
| so, I'd like to have something like
| echo "600 -1 -1"
| before falling asleep.
| The -1 would mean "ignore this axis", the 600 would refer a change of
| 0.6G irrespectively of sign.
For reference the datasheet is freely available here:
It seems to me there is basically one number you can set, and then you
can decide if X, Y and/or Z go above or below that number makes an
interrupt. It looks like this number is absolute, ie, if you set it to
5 then going above or below 5 x 18mG "in + or -" will trigger it.
So you can almost get what you are looking for, just that there is only
one number allowed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-devel