Go to Post Swerve Drive (n.) - a set of mechanisms to ensure the robot will sit dead on the field for half of that robot's first event - Kevin Leonard [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2008, 15:47
Gizmo2417 Gizmo2417 is offline
Gizmo
FRC #2417 (Robocougars)
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Virginia
Posts: 9
Gizmo2417 is an unknown quantity at this point
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.
__________________
Electrical, Structure, Programmer, Drive Train, Thinker, WebDesigner, Pneumatics, Peace Keeper, Advisor, Ect...
  #2   Spotlight this post!  
Unread 17-02-2008, 17:10
Branden Ghena's Avatar
Branden Ghena Branden Ghena is offline
Previously: tawnos23
FRC #0240 (TEMPEST)
Team Role: College Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Houghton, Michigan (MTU)
Posts: 303
Branden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura aboutBranden Ghena has a spectacular aura about
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?
__________________
Branden Ghena - Michigan Tech Student and Team 240 Alumnus
Working Towards: Electrical Engineering and Computer Engineering Double Major

"All we have to decide is what to do with the time that is given to us." - Gandalf
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EasyC Pro Programming? Gizmo2417 General Forum 6 04-02-2008 01:08
MS Vista/EasyC & EasyC Pro rswsmay Programming 1 25-04-2007 10:47
easyC Pro help! shlomi Programming 1 08-02-2007 06:48
EasyC Pro trial? Stuart Programming 3 07-02-2007 22:33


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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