I don't, but it looks quite straightforward according to the datasheet.
Seems like a simple I2C2.writeTo(addr, my8databits) would set the outputs, I2C2.readFrom(addr,1) would read them.
I2C2.writeTo(addr, my8databits)
I2C2.readFrom(addr,1)
EEPROM looks pretty easy as well, but the address you use has the 7th bit set, so you'd need: I2C2.writeTo(addr|64, ...) to access it.
I2C2.writeTo(addr|64, ...)
@Gordon started
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.
I don't, but it looks quite straightforward according to the datasheet.
Seems like a simple
I2C2.writeTo(addr, my8databits)
would set the outputs,I2C2.readFrom(addr,1)
would read them.EEPROM looks pretty easy as well, but the address you use has the 7th bit set, so you'd need:
I2C2.writeTo(addr|64, ...)
to access it.