Tansistor H bridge with TTL-compatible inputs