add I2C modes object
write tests for I2C