i2c library working with hardware