Interrupt/ signal from Accelerometer

Neil Brown neilb at suse.de
Tue Feb 23 10:45:05 CET 2010


On Tue, 23 Feb 2010 14:41:43 +0530
Abhishek Bajpai <abhisheietk at gmail.com> wrote:

> I am working on a project where I want to use hand gesture to wake up the
> device.
> Is it possible to generate signals/interrupts from the accelerometer in
> openmoko??
> 

Yes.
The current code programs it to generate an interrupt on every sample -
either 100HZ or 400HZ.  I posted some code a while back which makes this much
more flexible, and it will instead generate an interrupt only when there is a
change of a certain magnitude.

See
  http://lists.openmoko.org/pipermail/openmoko-kernel/2009-November/010672.html

and following.

Is that what you wanted, or something else?

NeilBrown




More information about the openmoko-kernel mailing list