![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my new gear...
Diff: sensor/BNO055.cpp
- Revision:
- 20:4e0fa6fba27c
- Parent:
- 7:1c09bcc18c14
--- a/sensor/BNO055.cpp Wed Sep 21 06:06:50 2022 +0000 +++ b/sensor/BNO055.cpp Fri Sep 30 00:04:11 2022 +0000 @@ -1,10 +1,10 @@ #include "BNO055.h" #include "mbed.h" -BNO055::BNO055(PinName SDA, PinName SCL) : _i2c(SDA,SCL) +BNO055::BNO055(PinName SDA, PinName SCL, int freq = 400000) : _i2c(SDA,SCL) { //Set I2C fast and bring reset line high - _i2c.frequency(400000); + _i2c.frequency(freq); address = BNOAddress; accel_scale = 0.001f; rate_scale = 1.0f/16.0f;