il est la, il est beau!!!!

Dependencies:   m3piBluetooth mbed

main.cpp

Committer:
thomasstrub
Date:
2018-05-03
Revision:
0:b839dbffc636
Child:
1:63050abd40e9

File content as of revision 0:b839dbffc636:

#include "mbed.h"
#include "m3pi.h"
#include "polulu.h"



int main() 
{
    int f = 115200;
    deffreq(f);
    
    char c = 'a';
    char* message = "Hello World!";
    sendmsg(message);
    while(1) {
        stop_motors();
        getdir(c);
        char* message2 = "Je viens de recevoir :";
        sendmsg(message2);
        sendmsg(&c);
        //move
        assignDirection(c, 0.2);
        getCapt();
        suiviIntersect();
    }
}