View Single Post
  #1   Spotlight this post!  
Unread 09-02-2002, 13:47
punarhero's Avatar
punarhero punarhero is offline
Registered User
#0696 (Clark Magnet Robotics)
Team Role: Programmer
 
Join Date: Jan 2002
Location: la crescenta
Posts: 67
punarhero is an unknown quantity at this point
Send a message via AIM to punarhero Send a message via Yahoo to punarhero
Light programming

Hi,
We just got the light and I hooked it on to a relay. It workd fine. I hooked it on to relay 3, which is assigned to p3_sw_trig and p3_sw_top, but we have a little problem.

The light is on untill I keep pressing the button, but I wanna do something else. I want to hit the top button once on joystick3 and have the light turn on. I mean I should have to hold down the button to keep the light running. And when I wanna turn the light off, I should be able to do it by hitting the trigger button once on joystick3.

Can anyone tell me the exact code I can insert to do this. I need it urgently.

Thanx