I2C software implementation for Arduino