affichage v7

Fork of AFFICHAGE by Projet robot

Revision:
8:80a4449820ac
Parent:
7:8cadfcb7809f
Child:
9:2cc0e874fb4e
diff -r 8cadfcb7809f -r 80a4449820ac Affichage.cpp
--- a/Affichage.cpp	Thu Mar 02 12:31:33 2017 +0000
+++ b/Affichage.cpp	Wed Mar 15 15:26:50 2017 +0000
@@ -55,6 +55,22 @@
             m3piA.locate(0,1);
             m3piA.printf(" %.1f cm",distance);
             wait(1);
+                
         }
     }
+    
+    void Affichage::afficherObstacle(bool obstacle){
+        
+        m3piA.cls();
+        
+        if(obstacle==true){
+            m3piA.printf("true");
+            wait(1);
+        }
+        else{
+            m3piA.printf("false");
+            wait(1);
+        }    
+        
+    }
     
\ No newline at end of file