You are reading a single comment by @user136941 and its replies.
Click here to read the full conversation.
-
I tested it, detects two devices in
0x68
(that is MPU) and0x76
(Is the BMP).Here a full log of the error:
Init MPU... Uncaught InternalError: I2CWrite: No ACK 0 at line 1 col 15 a.writeTo(12,c);return a.readFrom(12,d) ^ in function "rmag" called from line 1 col 49 ...ew Uint8Array(this.rmag(3,7))).buffer),b=49120/32760;return{... ^ in function "readMag" called from line 1 col 63 ...eadGyro(),mag:this.readMag(),new:this.dataReady()} ^ in function "read" called from line 3 col 23 data = mpu.read(); ^ in function called from system Uncaught Error: Unhandled promise rejection: InternalError: I2CWrite: No ACK 0
Please check the nodemcu class to get the correct pin names.
http://www.espruino.com/Reference#t_NodeMCU