Start of project 2

Dependencies:   Motor Servo mbed mbed-rtos

main.cpp

Committer:
m215676
Date:
2018-10-09
Revision:
0:9347308e8e1a
Child:
1:7133819e4265
Child:
3:50cee0fef078

File content as of revision 0:9347308e8e1a:

#include "mbed.h"
#include "stdio.h"
#include "Motor.h"
#include "math.h"


Motor m(p26, p30, p29);
int i;
char x;
int j;

int main() {
    
    while(1){
        m.speed(1);
        getchar();
        m.speed(-1);
        getchar();  
    } //end of while loop
    
    } //end of int main