![](/media/cache/group/Logo_v4_ZnplGO9.jpg.50x50_q85.jpg)
il est la, il est beau!!!!
Dependencies: m3piBluetooth mbed
Diff: main.cpp
- Revision:
- 0:b839dbffc636
- Child:
- 1:63050abd40e9
diff -r 000000000000 -r b839dbffc636 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 03 14:03:58 2018 +0000 @@ -0,0 +1,26 @@ +#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(); + } +} \ No newline at end of file