Code: Select all
on prg#prg do
if [prg#prg]=0 and [sw2_p1#sw2_p1]=0 and [sw3_p2#sw3_p2]=0 and [sw4_p3#sw4_p3]=0
gpio,14,0
gpio,12,0
gpio,4,1
endif
endon
on prg#prg= do
if [prg#prg]=0 and [sw2_p1#sw2_p1]=1 and [sw3_p2#sw3_p2]=0 and [sw4_p3#sw4_p3]=0
gpio,4,0
gpio,12,1
gpio,14,0
endif
endon
on prg#prg do
if [prg#prg]=0 and [sw2_p1#sw2_p1]=0 and [sw3_p2#sw3_p2]=1 and [sw4_p3#sw4_p3]=0
gpio,12,0
gpio,4,0
gpio,14,1
endif
endon
on prg#prg do
if [prg#prg]=0 and [sw2_p1#sw2_p1]=0 and [sw3_p2#sw3_p2]=0 and [sw4_p3#sw4_p3]=1
gpio,4,0
gpio,14,0
gpio,12,0
endif
endon