Código para o menu no LCD

Dependencies:   mbed SDFileSystemSD TextLCD

Fork of TextLCD_HelloWorld2 by Wim Huiskamp

Revision:
22:22ddb0b21d48
Parent:
21:7603fe283ba4
Child:
23:19c67758032d
--- a/classes.h	Tue May 15 16:20:06 2018 +0000
+++ b/classes.h	Tue May 15 16:42:54 2018 +0000
@@ -166,7 +166,7 @@
                 lcd.locate(2,3);
                 lcd.printf("%.3f", cz);
                 }
-            if Mach.readable(){
+            if (Mach.readable()){
                 readSerial();
                 }
             }          
@@ -505,15 +505,13 @@
         wait(1);
         func = 2;
         }   
-        
-           
-    private:
+
     void readSerial(){
         char recv;
         
         while(1){
             recv = Mach.getc();
-            printf("%c\n\r", recv);
+            printf("%c\n\r", recv);/*
             if (recv=='p'){
                 points = 1;
                 if (recv=='X'){
@@ -531,8 +529,9 @@
                     break;
                     }
                 }    
-            }
+            }*/
         }
+    }
+                    
     Menu(); //não apagar
-    
 };
\ No newline at end of file