I2C is one of those commands that will set the TRIS for you. But like Alain said, you will want to control things at start up. I would set them as an input.I2C requires a pin to be an output and an input for correct communication: what should I declare in the TRIS reg ?
If you have floating pins set them as out puts.
Bookmarks