Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: StepperMotor mbed
Revision 0:48cdac0bbf8b, committed 2018-10-06
- Comitter:
- hisyamfs
- Date:
- Sat Oct 06 11:31:23 2018 +0000
- Commit message:
- ngetes library steppermotor dengan driver a4998
Changed in this revision
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