Here's an example from DaveC3.
Just ignore the interrupt and USB portions.

The constants and I2CREAD/I2CWRITE statements are what you need.

http://www.picbasic.co.uk/forum/show...5720#post55720