Revision 60d68bed
| Adafruit_BNO055.cpp | ||
|---|---|---|
| 893 | 893 |
#endif |
| 894 | 894 |
} |
| 895 | 895 |
|
| 896 |
/* |
|
| 897 |
* @brief Explicit reset for the chip |
|
| 898 |
*/ |
|
| 899 |
bool Adafruit_BNO055::reset() {
|
|
| 900 |
_wire->beginTransmission(_address); |
|
| 901 |
setMode(OPERATION_MODE_CONFIG); |
|
| 902 |
|
|
| 903 |
/* Reset */ |
|
| 904 |
write8(BNO055_SYS_TRIGGER_ADDR, 0x20); |
|
| 905 |
while (read8(BNO055_CHIP_ID_ADDR) != BNO055_ID) {
|
|
| 906 |
delay(10); |
|
| 907 |
} |
|
| 908 |
delay(50); |
|
| 909 |
} |
|
| 910 |
|
|
| 896 | 911 |
/* ToDo: Check for errors! */ |
| 897 | 912 |
return true; |
| 898 | 913 |
} |
Also available in: Unified diff