-->
Page 1 of 2

Added first stab at i2c functions

PostPosted: Thu Sep 03, 2015 9:59 pm
by Mmiscool
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.

Re: Added first stab at i2c functions

PostPosted: Sat Sep 05, 2015 11:00 am
by AJB2K3
Any plan to drive one of those i2c oled displays?

ssd1306 i2c?

Re: Added first stab at i2c functions

PostPosted: Sat Sep 05, 2015 1:27 pm
by Mmiscool
Working on it

Image

Re: Added first stab at i2c functions

PostPosted: Sat Sep 05, 2015 1:45 pm
by danbicks
Mmiscool wrote:Working on it

Image



An un soldered OLED :( always ensure good connectivity buddy.