Definition of a class for dealing with basic I2C communication