PDA

View Full Version : Programming a single relay to two buttons in easyC Pro?


Gizmo2417
02-17-2008, 03:47 PM
Is it possible for one relay to be controlled by two different buttons on the controller in easyC Pro?
Thanks.

Branden Ghena
02-17-2008, 05:10 PM
Yes.

If you did something like this

Protocode:

If (button1 == 1) or (button2 == 1){
setRelay1 to on
}

Was that what you meant?