beta1

Dependents:   Ex_Stepper

Fork of a4998 by Keegan Hu

Revision:
3:9e9f3cd7fff0
Parent:
2:57c57267b1da
--- a/a4988.h	Mon Jul 16 23:53:54 2018 +0000
+++ b/a4988.h	Tue Jul 17 00:28:36 2018 +0000
@@ -1,18 +1,18 @@
 #ifndef __A4988_H
 #define __A4988_H
-#endif
 
 #include "mbed.h"
 class Stepper
 {
-public:
-    Stepper(PinName _en,PinName _stepPin, PinName _direction);
-    void step(int dir, int frequency ,volatile int _remain);
-    void longrun(int dir,int frequency);
+  public:
+    Stepper(PinName _en, PinName _stepPin, PinName _direction);
+    void step(int dir, int frequency, volatile int _remain);
+    void longrun(int dir, int frequency);
     void stoprun();
     void enable();
     void disable();
-private:
+
+  private:
     DigitalOut en;
     DigitalOut stepPin;
     DigitalOut direction;
@@ -21,3 +21,4 @@
     void step_control();
     void run_control();
 };
+#endif
\ No newline at end of file