Adapt code to beaglebone's native i2c.