Uncaught InternalError: Timeout on I2C Read Receive
The usual suspect are pull up resistors
Other causes
You send a command via I2C that causes the device to require a delay before it is ready to talk I2C again.
Examples for the BNO055 are reset, change clock between internal and external
One solution is to use a callback
Is there a way to throw and catch the error and then try again N times or until the error clears?
function start(){
// define the I2C connection
I2C3.setup({ scl :A8, sda: B4} );
// define the bus address of the BNO055 chip
var BusAddress= 0x28;//If ADR pin at 3V 0x29
//load the BMO055 module
W=require("BNO055").connect(I2C3,BusAddress,function(){
// set the BNO055 clock to external using a callback funtion
W.External_Clk(1,function(){
//the callback code goes here
});//end set external clock
});//end require
}//end start
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The error message
Uncaught InternalError: Timeout on I2C Read Receive
The usual suspect are pull up resistors
Other causes
You send a command via I2C that causes the device to require a delay before it is ready to talk I2C again.
Examples for the BNO055 are reset, change clock between internal and external
One solution is to use a callback
Is there a way to throw and catch the error and then try again N times or until the error clears?
The external clock function with callback