|
Re: Limit Switch Basics
#define leftLS rc_dig_in15
#define rightLS rc_dig_in14
if(leftLS == 0)
//the left limit switch is on
//dont turn left any more
if(rightLS == 0)
//the right limit switch is on
// dont turn right any more
//this post made more since before the nevermind
__________________
Proud mentor of Team #1745 the P-51 Mustangs
If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
|