Please check the nodemcu class to get the correct pin names.
I tested it, detects two devices in 0x68 (that is MPU) and 0x76 (Is the BMP).
Here a full log of the error:
Uncaught InternalError: I2CWrite: No ACK 0
at line 1 col 15
in function "rmag" called from line 1 col 49
in function "readMag" called from line 1 col 63
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
© Espruino, powered by microcosm.
Report a problem