If you need to search the I2C bus for devices, it's just a for loop and I2C1.readFrom() to implement it yourself... Or you could just consult the datasheet and find out what the address is that way.
This works... (as of a few weeks ago, I've been swamped lately, no time to do anything on my project, but unless something got broken, this works).
I2C1.setup({scl:5,sda:4});
var eeprom=require("AT24").connect(I2C1, 128, 512); //default address, ie, all address pins low.
//oodles of eeprom.read() and eeprom.write()
// full code: https://github.com/SpenceKonde/AzzyProjects/blob/master/Animate/Version6.js
I don't think bitrate/baudrate works on the ESP8266.
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.
I2C.find() doesn't do what you think it does. See the reference
http://www.espruino.com/Reference#l_I2C_find
If you need to search the I2C bus for devices, it's just a for loop and I2C1.readFrom() to implement it yourself... Or you could just consult the datasheet and find out what the address is that way.
This works... (as of a few weeks ago, I've been swamped lately, no time to do anything on my project, but unless something got broken, this works).
I don't think bitrate/baudrate works on the ESP8266.