Libary for Strpper motor controller, eg: Rep-Rap smart stick Catering for both, Phisical 'PIN' endstops, and PORT Expander end stops . ** BOTH IN TEST ** ** Phisical PIN tested (minimal) **** PORT PIN NOT TESTED ****

Revision:
1:66e95666c3b5
Parent:
0:a509cc91f7c2
Child:
2:4102dd9293a6
--- a/Stepper.cpp	Thu Jul 18 09:05:15 2013 +0000
+++ b/Stepper.cpp	Mon Jul 29 09:15:11 2013 +0000
@@ -75,6 +75,14 @@
 
 // ------------------------------------------------------------------------------------
 
+
+bool Stepper::Enable (bool OnOff)
+{
+    _En = OnOff;
+}
+
+// ------------------------------------------------------------------------------------
+
 bool Stepper::Set_Dir (bool Dir2Set)
 {
 //    if (Dir == NC)
@@ -138,7 +146,7 @@
     
     if (retval)
     {
-        StepCount = 0;  // might be very bad for H-BOT
+        //StepCount = 0;  // might be very bad for H-BOT
     }
      
     return retval;