You are reading a single comment by @DrAzzy and its replies. Click here to read the full conversation.
  • 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).

    
    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/AzzyProje­cts/blob/master/Animate/Version6.js
    
    

    I don't think bitrate/baudrate works on the ESP8266.

About

Avatar for DrAzzy @DrAzzy started