Search found 2 matches
- 02 Feb 2017, 15:44
- Forum: ESP Easy: Projects / Applications
- Topic: long push, short push detection with a button (connected on gpio)
- Replies: 10
- Views: 13382
Re: long push, short push detection with a button (connected on gpio)
It can work but it's not really a long press, if you press, release, and then press it again within 2 seconds it will trigger the "long press" and it shoudln't... I think you shoudl reset the timer if the switch is released in order to make it work properly! You're right. Thanks for the a...
- 01 Feb 2017, 20:57
- Forum: ESP Easy: Projects / Applications
- Topic: long push, short push detection with a button (connected on gpio)
- Replies: 10
- Views: 13382
Re: long push, short push detection with a button (connected on gpio)
Hi, Yes, I got that working by using the rules section. Let the button start a timer-rule. (where you can specify your long-push time) On Switch#Switch1=1.00 do timerSet,1,2 (where 2 is the long push time in seconds) endon On Rules#Timer=1 do if [Switch#Switch1]=1.00 gpio,15,1 else gpio,16,1 endif e...