hisyam fs / Mbed 2 deprecated tes_stepper

Dependencies:   StepperMotor mbed

Files at this revision

API Documentation at this revision

Comitter:
hisyamfs
Date:
Sat Oct 06 11:31:23 2018 +0000
Commit message:
ngetes library steppermotor dengan driver a4998

Changed in this revision

StepperMotor.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 48cdac0bbf8b StepperMotor.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/StepperMotor.lib	Sat Oct 06 11:31:23 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/melse/code/StepperMotor/#52fb09e87581
diff -r 000000000000 -r 48cdac0bbf8b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Oct 06 11:31:23 2018 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "Stepper.h"
+
+#define WAIT_TIME 0.02
+
+// stepper(PinName _en, PinName ms1, PinName ms2, PinName ms3, PinName _stepPin, PinName dir);
+stepper s(D9, D4, D5, D6, D7, D8);
+
+int main()
+{
+    s.enable();
+    while (1)
+    {
+        s.step(1, 1, 1/WAIT_TIME);
+//        wait(0.02);
+    }    
+}
\ No newline at end of file
diff -r 000000000000 -r 48cdac0bbf8b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Oct 06 11:31:23 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file