You are reading a single comment by @Gustav and its replies. Click here to read the full conversation.
  • Running a nodemcu lolin v3 and trying to communicate with a DS3231 which is on a ZS-042 board.
    Tried using the module for DS3231 but no luck so far..

    My Code:

    I2C1.setup({scl:15,sda:0});
    var rtc = require("DS3231").connect(I2C1, { DST : false });
    setInterval(function() {
      console.log(rtc.readDateTime());
    }, 1000);
    

    Error:

    in function called from system
    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());
    

    Any thoughts of what i might be doing wrong ? , maybe the module isn't right for me.

About

Avatar for Gustav @Gustav started