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: mbed servo_motor mbed-rtos
Diff: main.cpp
- Revision:
- 0:75bd93370a68
- Child:
- 1:f43b9b2d82be
diff -r 000000000000 -r 75bd93370a68 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Dec 18 11:13:06 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+PortOut step_motor(PortB,0xC006);
+int main()
+{
+ while(1)
+ {
+step_motor=0x0002;//PB_1 hex
+wait_ms(3);
+step_motor=0x0004;//PB_2 hex
+wait_ms(3);
+step_motor=0x4000;//PB_14 hex
+wait_ms(3);
+step_motor=0x8000;//PB_15 hex
+wait_ms(3);
+ }
+ return 0;
+ }
\ No newline at end of file