Marvas / Mbed 2 deprecated step_motor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
marvas
Date:
Wed Dec 18 11:13:06 2019 +0000
Commit message:
step motor portout ile calistirma

Changed in this revision

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
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Dec 18 11:13:06 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file