serial test menu

Dependencies:   mbed

Fork of Nucleo_serial_menu by FRA221_2015

Files at this revision

API Documentation at this revision

Comitter:
gunpuen2
Date:
Thu Dec 01 09:40:13 2016 +0000
Parent:
7:a651b3c90958
Commit message:
print u turn

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
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){