TWI driver Smart, optimized version