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
Revision 0:75bd93370a68, committed 2019-12-18
- 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