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.
Diff: main.cpp
- Revision:
- 1:da47ec654063
- Parent:
- 0:3aa70ac75ca3
--- a/main.cpp Thu Oct 02 14:35:51 2014 +0000
+++ b/main.cpp Fri Feb 03 07:51:57 2017 +0000
@@ -1,8 +1,9 @@
#include "mbed.h"
#include "Motor.h"
-Motor motor1(p26,p29,p30);
-
+//Motor motor1(p26,p29,p30);
+/*
+Motor motor1(PB_1,PB_14,PB_15);
int main()
{
float motorspeed;
@@ -13,4 +14,21 @@
getchar();
}
motor1.speed(0.0);
-}
\ No newline at end of file
+}
+*/
+
+
+DigitalOut mo_in1(PB_14);
+DigitalOut mo_in2(PB_15);
+DigitalOut mo_en(PB_1);
+
+ int main(){
+
+ while(1)
+ {
+ mo_in1 = 0;
+ mo_in2 = 1;
+ mo_en = 1;
+ }
+
+}