Start of project 2

Dependencies:   Motor Servo mbed mbed-rtos

Committer:
m215676
Date:
Tue Oct 09 12:22:19 2018 +0000
Revision:
0:9347308e8e1a
Child:
1:7133819e4265
Child:
3:50cee0fef078
Start of project 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
m215676 0:9347308e8e1a 1 #include "mbed.h"
m215676 0:9347308e8e1a 2 #include "stdio.h"
m215676 0:9347308e8e1a 3 #include "Motor.h"
m215676 0:9347308e8e1a 4 #include "math.h"
m215676 0:9347308e8e1a 5
m215676 0:9347308e8e1a 6
m215676 0:9347308e8e1a 7 Motor m(p26, p30, p29);
m215676 0:9347308e8e1a 8 int i;
m215676 0:9347308e8e1a 9 char x;
m215676 0:9347308e8e1a 10 int j;
m215676 0:9347308e8e1a 11
m215676 0:9347308e8e1a 12 int main() {
m215676 0:9347308e8e1a 13
m215676 0:9347308e8e1a 14 while(1){
m215676 0:9347308e8e1a 15 m.speed(1);
m215676 0:9347308e8e1a 16 getchar();
m215676 0:9347308e8e1a 17 m.speed(-1);
m215676 0:9347308e8e1a 18 getchar();
m215676 0:9347308e8e1a 19 } //end of while loop
m215676 0:9347308e8e1a 20
m215676 0:9347308e8e1a 21 } //end of int main
m215676 0:9347308e8e1a 22