basavaraj.mr
Junior Member level 3
Hi, all
I wanted to implement single push switch for 2 different actions.
1) if i press and hold for 3 sec the device should ON, if it is ON den it should OFF.
2) if i press and release do other actions.
Am not able to differentiate 1sec switch press and 3 sec switch press plzz help me..
Thanks in advance.
I wanted to implement single push switch for 2 different actions.
1) if i press and hold for 3 sec the device should ON, if it is ON den it should OFF.
2) if i press and release do other actions.
Am not able to differentiate 1sec switch press and 3 sec switch press plzz help me..
Thanks in advance.