View Single Post
  #4   Spotlight this post!  
Unread 16-02-2003, 22:30
Coach C's Avatar
Coach C Coach C is offline
Registered User
#0341 (Miss Daisy)
 
Join Date: Nov 2002
Location: Wissahickon High School
Posts: 13
Coach C is an unknown quantity at this point
You probably have something like this:

relayX_fwd = pX_sw_trig

You need something like this:

if (pX_sw_trig) then relayX_fwd = 1
if (pX_sw_top) then relayX_fwd = 0

If using two buttons is out of the question, you'll have to get a bit more creative:

if ((pX_sw_trig ~= LastState) & (pX_sw_trig = 1)) then
relayX_fwd = OpenClose
OpenClose = OpenClose - 1
endif
LastState = pX_sw_trig