I2C1.setup({scl:B8,sda:B9});
var eeprom=require("AT24").connect(I2C2, 8, 256, 1);
console.log(eeprom.read(0x64,"Merhaba Dunya"));
But I'm getting this error :
Uncaught Error: I2C device not responding
at line 1 col 50
...writeTo(this.i(a),this.a(a));return this.i2c.readFrom(this.i...
^
in function "read" called from line 1 col 42
console.log(eeprom.read(0,"Merhaba Dunya"));
^
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.
Hello,
I'm trying to wire up and 24C02A EEPROM and read-write data on it.
I'm using this datasheet : http://pdf.datasheetcatalog.com/datasheets/90/80419_DS.pdf
I'm using SMT32F4 Discovery.
I have vired as this
EEPROM VCC -> Board 5V
EEPROM CSS -> Board Ground
EEPROM SCL -> Board SCL (B8)
EEPROM SDA -> Board SDA (B9)
Then I'm using this code;
But I'm getting this error :
What I'm doing wrong?