I really , thank you for your working. I tested your code , that is not what i wanted .
But , I already find a diffrent solution for my need .
Example ;
When you press a button , led will be high over a npn transistor. And a counter starting the count for 5 second .
if button still pressed end of 5 sn , another output from a pic will be high over transistor which is connected first one from base - collector.
It will force to down the first transistor .
Otherwise , in 5 sec i release button it goes first statetment.
Thanks everbody who helps .
Not : If some body interset my code i can send to board .




Bookmarks