Please do a forum SEARCH on 'I2CSlave' and you will eventually find links to code and examples to play with...