Serial Communication

Dependencies:   mbed

Fork of Nucleo_serial_menu by FRA221_2017

Revision:
8:d90b2dfb339d
Parent:
7:a651b3c90958
diff -r a651b3c90958 -r d90b2dfb339d main.cpp
--- a/main.cpp	Thu Dec 01 09:35:33 2016 +0000
+++ b/main.cpp	Thu Dec 01 09:40:13 2016 +0000
@@ -85,6 +85,7 @@
     while(1) { //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Play
         if(U_ready == 1){state = 0;}else{state = 1;}
         if(state == 1){
+            printf("Your turn.\n");
             Vx = VRx.read() * 1024;
             Vy = VRy.read() * 1024;
             SW = Button.read();
@@ -231,7 +232,6 @@
     }
 }
 int check_correctPosition(int X,int Y){
-    printf("%d ++ %d\n",X,Y);
     if(X<=7){
         if(Y<=7){
             if(ship_flor[X][Y] == 0){