Adafruit BNO055 test program.
Dependencies: Adafruit_BNO055 mbed
Revision 1:6fbffee6db13, committed 2015-09-16
- Comitter:
- simonscott
- Date:
- Wed Sep 16 22:32:34 2015 +0000
- Parent:
- 0:6d1d015173a3
- Commit message:
- Changed I2C pins
Changed in this revision
Adafruit_BNO055.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6d1d015173a3 -r 6fbffee6db13 Adafruit_BNO055.lib --- a/Adafruit_BNO055.lib Wed Sep 16 19:49:13 2015 +0000 +++ b/Adafruit_BNO055.lib Wed Sep 16 22:32:34 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/Ben-Simon-Inez-IDD/code/Adafruit_BNO055/#22c544c8741a +https://developer.mbed.org/teams/Ben-Simon-Inez-IDD/code/Adafruit_BNO055/#8092160b6a59
diff -r 6d1d015173a3 -r 6fbffee6db13 main.cpp --- a/main.cpp Wed Sep 16 19:49:13 2015 +0000 +++ b/main.cpp Wed Sep 16 22:32:34 2015 +0000 @@ -7,7 +7,7 @@ #define BNO055_SAMPLERATE_DELAY_MS (100) Serial pc(USBTX, USBRX); -I2C i2c(D14, D15); +I2C i2c(D7, D6); Adafruit_BNO055 bno = Adafruit_BNO055(-1, BNO055_ADDRESS_A, &i2c); void loop(); @@ -29,6 +29,8 @@ pc.printf("Ooops, no BNO055 detected ... Check your wiring or I2C ADDR!\r\n"); while(1); } + else + pc.printf("BNO055 was detected!\r\n"); wait(1);