ported from wire lib to i2c master library http://dsscircuits.com/articles/66-arduino-i2c-master-library