|
Re: limit switches
I am not sure if the question has been answered or not but I can't really diagnose the problem with out the code but what my first idea would be is that there is not an else statement following his if statement to turn the motor off when the switch is not pressed.
if (button8 == 1)
{pwm01 = 254;}
else
{pwm01 = 127;}
Wait, after rereading some of the posts maybe this is not the problem.
Please post your code so we can further diagnose it.
Last edited by CyberWolf_22 : 29-04-2005 at 01:09.
|