Forked from Uwe Gartmann's ADXL345 library, customized as part of the 9DOF stick from Sparkfun.com
Fork of ADXL345 by
ADXL345 is triple axis, digital interface, accelerometer.
This library is forked from Uwe Gartmann and Peter Swanson's work.
This library is for specific application using 9DoF-Stick.
Datasheet:
http://www.analog.com/static/imported-files/data_sheets/ADXL345.pdf
ADXL345は3軸のデジタルインターフェースを備えた加速度センサです。
このライブラリは 9DoF-Stick を使用した特定の企画のために保守しています。
mbed IDEが日本語をサポートするまでは英語でコメントを書いていきますが、サポートした後もきっと英語で書いていくでしょう。
Diff: ADXL345.cpp
- Revision:
- 1:45faba962a46
- Parent:
- 0:1e4aa22fc1a1
- Child:
- 2:e64d8b9096cd
diff -r 1e4aa22fc1a1 -r 45faba962a46 ADXL345.cpp --- a/ADXL345.cpp Fri Oct 07 19:13:33 2011 +0000 +++ b/ADXL345.cpp Fri Oct 07 21:06:14 2011 +0000 @@ -57,7 +57,7 @@ //400kHz, allowing us to use the fastest data rates. //there are other chips on board, sorry - //i2c_.frequency(100000); + i2c_.frequency(100000); // initialize the BW data rate char tx[2]; tx[0] = ADXL345_BW_RATE_REG;