BMX055に4線式SPIモードで接続するためのライブラリです
Revision 2:e25b321f54ba, committed 2018-12-04
- Comitter:
- kim1212
- Date:
- Tue Dec 04 02:51:14 2018 +0000
- Parent:
- 0:c317a0f96763
- Commit message:
- software reset???wait???
Changed in this revision
BMX055.cpp | Show annotated file Show diff for this revision Revisions of this file |
BMX055.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/BMX055.cpp Mon Nov 28 10:48:59 2016 +0000 +++ b/BMX055.cpp Tue Dec 04 02:51:14 2018 +0000 @@ -70,6 +70,8 @@ accss=1; writebyte_acc(0x14,0xb6);//softwarereset + wait(0.01); + writebyte_acc(0x0f,range); writebyte_acc(0x10,bw); @@ -117,6 +119,9 @@ gyrss=1; writebyte_gyr(0x14,0xb6);//soft reset + + wait(0.01); + writebyte_gyr(0x0f,range); writebyte_gyr(0x10,odr_bw);//bandwidth&ODR calib_gyr();
--- a/BMX055.h Mon Nov 28 10:48:59 2016 +0000 +++ b/BMX055.h Tue Dec 04 02:51:14 2018 +0000 @@ -91,6 +91,8 @@ void init_mag(); + + void offset();