You mean switch direction when the pot is 0, right?
This won't touch the Direction variable if PotValue is >0.Code:GOSUB GetADC If PotValue = 0 THEN Direction = PortB.7 ' Or whatever ENDIF
You mean switch direction when the pot is 0, right?
This won't touch the Direction variable if PotValue is >0.Code:GOSUB GetADC If PotValue = 0 THEN Direction = PortB.7 ' Or whatever ENDIF
Bookmarks