x = i2cRead({device number},{number of characters to read})
x = i2cRead(10,6)
x = i2cWrite(10,{string of characters to send})
x = i2cWrite(10,"test")
i2cWrite will should return
0:success
1:data too long to fit in transmit buffer
2:received NACK on transmit of address
3:received NACK on transmit of data
4:other error
Don't have any i2c devices to test it on yet so if any one wants to give them a try let me know if they work.
http://esp8266basic.com
A BASIC interpreter for your ESP
Working now on Autodrop3d. A 3d printer with automatic part ejection system. https://autodrop3d.com