receiving i2c commands

Check out the Wire library linked to from the library reference page: Libraries - Arduino Reference