Thread
:
Using a limit switch
View Single Post
#
2
02-04-2007, 19:36
Kingofl337
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Re: Using a limit switch
var = GetDigitalInput(1);
if ( var == 1 )
SetPWM( 1, 127); // Stop the motor
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Kingofl337
View Public Profile
Find all posts by Kingofl337
Find CD-Media Photos by Kingofl337
Find CD-Media Papers by Kingofl337