controlling a h-bridge using i2c interface