first part of I2C communication added. Set register functions takes value