Added I2C register read function