Log in

View Full Version : Using a limit switch


thunderbolt
30-03-2007, 11:22
Help!!
how do i use a limit switch to stop a motor at a given point. i need this in autonomous mode

Kingofl337
02-04-2007, 19:36
var = GetDigitalInput(1);

if ( var == 1 )
SetPWM( 1, 127); // Stop the motor