Hi Dear friends,
Can anyone have any idea if I have to get output (led) from ardiuno while setting any pin as a input (high) like due to high input i set the output also high , but I need the to low (off) the output after some time while input remain high.
Obaid
Take a look at the state change example - that'll show you how to detect when an input has become high. Then you can use millis to determine when to turn an output off.
Maybe you could state exactly what you are doing to make it easier for the reader to understand the problem you are attempting to solve.
It may be that wiring a led (together with its series resistor) between two digital output pins will do what you are trying to achieve.
The led will light only when the pin to which the anode is connected is HIGH and the pin to which the cathode is connected is LOW.
Yeah. I knew all the words OP used, but they were put in an order I couldn't understand.