You are reading a single comment by @Gustav and its replies.
Click here to read the full conversation.
-
Tried your code and resulted in this error:
Uncaught InternalError: I2CWrite: No ACK 0 at line 1 col 40 ...teTo(104,[4,parseInt(a,16)]);this.i2c.writeTo(104,[5,parseIn... ^ in function "setDate" called from line 1 col 68 ...onth(),Date().getFullYear()); ^ >Uncaught InternalError: I2CWrite: No ACK 0 at line 1 col 27 this.i2c.writeTo(104,[0,0]);this.i2c.writeTo(104,[1,parseInt... ^ in function "setTime" called from line 1 col 71 ...utes(), Date().getSeconds()); ^ =undefined Uncaught InternalError: I2CWrite: No ACK 0 at line 1 col 23 this.i2c.writeTo(104,0);var a=this.i2c.readFrom(104,7),b=e(a... ^ in function "readDateTime" called from line 1 col 30 console.log(rtc.readDateTime());
Hi, check this link and try this sample.
If this works for you, please add your test code and some comments - if you like :)