Search found 1 match

by andrea
26 May 2017, 11:36
Forum: ESP Easy: Projects / Applications
Topic: long push, short push detection with a button (connected on gpio)
Replies: 10
Views: 13394

Re: long push, short push detection with a button (connected on gpio)

Here is a snippet of working "production" code as example: on Button#Button do if [Button#Button]=1 TimerSet 3,5 TaskValueSet 2,4,1 PWM 13,0 else TimerSet 3,0 TaskValueSet 2,4,0 endif endon on Rules#Timer=3 do if [State#Reboot]=1 Reboot endif endon Button# is configured as normal switch (...