Enabling and checking I2C on the Raspberry Pi using the command line for your own scripts - pi3g.com ⇥ link