I'm not sure if this has anything to do with it, but I'm getting a bunch of errors in the Espruino console:
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v91 Copyright 2016 G.Williams
>
=undefined
IP: 192.168.43.247
{
"connect": function (a,c) {return new b(a,c)}
}
[WS] "Hello to Espruino!"
Uncaught InternalError: Timeout on I2C Read Receive
at line 1 col 66
...is.i2c.readFrom(this.addr,6);a=c[0]<<8|c[1];var b=c[2]<<8|c[...
^
in function "readSXYZ" called from line 1 col 17
this.readSXYZ(67)
^
in function "getRotation" called from line 1 col 36
...is;return this.getRotation().map(function(c){return c/a.gyro...
^
in function "getDegreesPerSecond" called from line 5 col 51
...n: mpu.getDegreesPerSecond(), // returns gyro array in degre...
^
in function called from system
ERROR: Out of Memory!
Execution Interrupted
Execution Interrupted
Execution Interrupted
Execution Interrupted
Uncaught InternalError: Timeout on I2C Read Receive
at line 1 col 66
...is.i2c.readFrom(this.addr,6);a=c[0]<<8|c[1];var b=c[2]<<8|c[...
^
in function "readSXYZ" called from line 1 col 17
this.readSXYZ(59)
^
in function "getAcceleration" called from line 1 col 40
...eturn this.getAcceleration().map(function(c){return c/a.acc_...
^
in function "getGravity" called from line 3 col 46
...celeration: mpu.getGravity(), // returns acceleration array...
^
in function called from system
Execution Interrupted
Execution Interrupted
Execution Interrupted
Execution Interrupted
Execution Interrupted
Execution Interrupted
ERROR: Ctrl-C while processing interval - removing it.
Execution Interrupted during event processing.
at line 1 col 66
...is.i2c.readFrom(this.addr,6);a=c[0]<<8|c[1];var b=in function "getRotation" called from line 1 col 36
...is;return this.getRotation().in function "getDegrees" called fromin function called from system
>
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.
I'm not sure if this has anything to do with it, but I'm getting a bunch of errors in the Espruino console: