View Single Post
  #5   Spotlight this post!  
Unread 16-02-2007, 14:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Makn' switches on a serial port

Top is pin 7. Trigger is pin 2. Aux switch 1 is pin 10. Ground is on pins 4 and 12. The OI reference document from IFI tells you all this and more.

A switch is registered in the code as "pressed" (a value of 1) when the associated pin is connected to ground.

For your switches, connect the "common" contact to ground, and each of the "normally open" contacts to the proper pin.