How to change the accelerometer sampling rate

Andy Green andy at openmoko.com
Tue Sep 23 12:30:53 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| Hello!!,
|
| Im a beginner and I need to change the sampling rate of the
accelerometers.
| Is there any config file to change that?
|
| and another question:
|
| Where I can see the real rate of the accelerometer?

# cat /sys/bus/spi/drivers/lis302dl/spi0.0/sample_rate
100
# echo 400 > /sys/bus/spi/drivers/lis302dl/spi0.0/sample_rate
# cat /sys/bus/spi/drivers/lis302dl/spi0.0/sample_rate
400

spi0.1 is the other guy.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjYxV0ACgkQOjLpvpq7dMpm7ACeIpEZysjt/WhIdcxZ7ho/Hlc+
jZ0Ani5GOWQongPY4BRwXsYHWESYmVmj
=AiLk
-----END PGP SIGNATURE-----




More information about the community mailing list