Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming a single relay to two buttons in easyC Pro? (http://www.chiefdelphi.com/forums/showthread.php?t=64381)

Gizmo2417 17-02-2008 15:47

Programming a single relay to two buttons in easyC Pro?
 
Is it possible for one relay to be controlled by two different buttons on the controller in easyC Pro?
Thanks.

Branden Ghena 17-02-2008 17:10

Re: Programming a single relay to two buttons in easyC Pro?
 
Yes.

If you did something like this

Protocode:
Code:

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

Was that what you meant?


All times are GMT -5. The time now is 13:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi