BMX055に4線式SPIモードで接続するためのライブラリです
Diff: BMX055.cpp
- Revision:
- 2:e25b321f54ba
- Parent:
- 0:c317a0f96763
--- 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();