connected a pin for input