or use the mssp module if your chip has one
http://support.melabs.com/forum/picbasic-pro-compiler-3-0-and-later/working-code-examples/7062-example-code-for-using-pic-hardware-i2c