View Single Post
  #12   Spotlight this post!  
Unread 17-03-2004, 20:44
doy's Avatar
doy doy is offline
#1208 Ex-Lead Programmer
AKA: Jesse Luehrs
#1208 (The Super Critical Axe Men)
Team Role: Alumni
 
Join Date: Jan 2004
Location: O'Fallon, IL
Posts: 27
doy is on a distinguished road
Send a message via AIM to doy
Re: Help! Programming question with triggers

Quote:
Originally Posted by AsimC
i forgot to say...it is a self centering toggle switch. Toggle forward is wired up to "trigger", and toggle back is wired up to "top" in code.

Anyways... Slimbojones when i was debugging my code, i tried something like that... and it didnt work. What happens is the 1 from p3_sw_trig is held in the code, so it never goes back to 0 and that means itll never go to neutral.
if at the rest state of the switch, both outputs are 0, then his code should work... if not, then i dont think the switch will work for what you want it to do, as there would be no way to tell whether or not the switch was being pushed in a direction or at rest.