Software implemenation of TWI (I2C) library for Arduino