Skip to content

Commit 6b50808

Browse files
author
Demo User
committed
2 parents d06a9ad + d20f63c commit 6b50808

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/BNO080.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ bool BNO080::begin()
5151
uint8_t action = 2; // 1 = reset, 2 = on; 3 = sleep
5252
uint8_t reset_BNO[4] = {0,1,0,action};
5353
i2c->write_multiplebytes(5,reset_BNO,4);
54+
55+
usleep(200000);
56+
//
57+
uint8_t init[15] = {0,2,seqNum_2,0xF2,0, 0x04,1,0,0,0,0,0,0,0,0 };
58+
i2c->write_multiplebytes(16,init,15);
59+
60+
61+
sprintf ("******** initialize **********");
62+
63+
usleep(2000000); // wait until response is available
64+
receivePacket(); // to report response
65+
receivePacket();
66+
receivePacket();
67+
68+
//
5469

5570
//Check communication with device
5671
shtpData[0] = SHTP_REPORT_PRODUCT_ID_REQUEST; //Request the product ID and reset info

0 commit comments

Comments
 (0)