You are on page 1of 1

on Switch1#State do

if [Switch1#State]=0
//double click triggered!
GPIO,13,0
GPIO,12,0
GPIO,15,0
endif
endon
on Switch1#State do
if [Switch1#State]=11
//long press click triggered!
GPIO,15,0
GPIO,12,0
GPIO,13,1
endif
endon
on Switch1#State do
if [Switch1#State]=3
//double click triggered!
GPIO,15,0
GPIO,13,0
GPIO,12,1
endif
endon
on Switch1#State do
if [Switch1#State]=1
//double click triggered!
GPIO,13,0
GPIO,12,0
GPIO,15,1
endif
endon

You might also like