Fermedicius Labs / FermeCantileverMotor
Revision:
0:151100d6a376
diff -r 000000000000 -r 151100d6a376 FermeCantileverMotor.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FermeCantileverMotor.h	Mon Jan 11 10:52:25 2021 +0000
@@ -0,0 +1,30 @@
+/* This library is created for Cantilever Stepper for Juice Works. It specifically applies when the Stepper Motor is run using
+   Lead Shine DM542 stepper driver. Here in the CantileverStepper.cpp file the switching of 4 coils are doone similarily in 
+   clockwise() and anticlockwise() functions.
+   For further enquiry you may contact to Arunav Sahay at arunav.f5@gmail.com
+*/
+
+#ifndef FERMECANTILEVERMOTOR_H      //FermeCantileverMotor.h
+#define FERMECANTI LEVERMOTOR_H      //FermeCantileverMotor.h
+
+#include "mbed.h"
+
+class cantileverMotor {
+public:
+    cantileverMotor(PinName A0,PinName A1, PinName A2, PinName A3); //motor constructor
+
+    void cantileverstep(int num_steps, int direction, int speed);
+    void anticlockwise();
+    void clockwise();
+
+
+private:
+
+    DigitalOut _A0;
+    DigitalOut _A1;
+    DigitalOut _A2;
+    DigitalOut _A3;
+
+};
+
+#endif
\ No newline at end of file