a simple library to control an animatronic head

Revision:
2:3920d79c79b1
Parent:
1:c5edd3b18b79
Child:
3:5271cc1a527b
--- a/Alex.cpp	Wed Dec 15 15:07:10 2010 +0000
+++ b/Alex.cpp	Wed Dec 15 15:39:53 2010 +0000
@@ -62,13 +62,14 @@
 
 void Alex::Presence_too_far()
 {
-    if(Testpresence()==1)
-    {
         pc.printf("You are too far, I can't see you !");
         Simulate_Talking(4);
         wait(3);
         pc.printf("Is there somebody ?");
         Simulate_Talking(4);
         wait(3);
-    }
+}
+void Alex::displaydistance()
+{
+    pc.printf("Distance : %4i\r\n", S.read());
 }
\ No newline at end of file