You are reading a single comment by @Amigo and its replies. Click here to read the full conversation.
  • Hi everyone! I use nrf52-DK with Espruino ide.
    I want to start soft i2c. I tried to use hardware and software examples as http://www.espruino.com/I2C.
    I wrote a code:

    // set up SPI
    var i2c = new I2C();
    i2c.setup({ scl : 30, sda: 31 });
    // Write a single byte (0) to address 0x52
    i2c.writeTo(0x52, 0);
    
    

    but everytime i have an error message like:

    *

    Uncaught Error: Function "setup" not found!
    at line 1 col 5
    i2c.setup({ scl : 30, sda: 31 });
    Uncaught Error: Function "writeTo" not found!
    at line 1 col 5
    i2c.writeTo(0x52, 0);
    *

    Could anyone help me?

About

Avatar for Amigo @Amigo started