You are reading a single comment by @user136941 and its replies.
Click here to read the full conversation.
-
I'm trying to call
WHO_AM_I
, don't know if this is the correct way to read data, but this is how it works the module, the example in page doesn't explain well, I mean, how to read8 bits
from device0x68
to the address0x75
:I2C1.setup( {scl: NodeMCU.D4, sda: NodeMCU.D5} ); I2C1.writeTo(0x68,0x75); var data = I2C1.readFrom(0x75,8); console.log(data);
But still got the same error:
Uncaught InternalError: I2CRead: No ACK 0 at line 5 col 33 var data = I2C1.readFrom(0x3B,8); ^ in function called from system
Check the module and try some simple calls.