Current News

Moderator: Mmiscool

User avatar
By Mmiscool
#27762 2 new functions

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.