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);
*
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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:
but everytime i have an error message like:
*
Could anyone help me?