a simple library to control an animatronic head

Revision:
3:5271cc1a527b
Parent:
2:3920d79c79b1
Child:
4:45d466252fb6
diff -r 3920d79c79b1 -r 5271cc1a527b Alex.cpp
--- a/Alex.cpp	Wed Dec 15 15:39:53 2010 +0000
+++ b/Alex.cpp	Wed Dec 15 16:08:37 2010 +0000
@@ -72,4 +72,11 @@
 void Alex::displaydistance()
 {
     pc.printf("Distance : %4i\r\n", S.read());
+}
+
+void Alex::Presence_too_close()
+{
+        pc.printf("You are too close, please move back");
+        Simulate_Talking(4);
+        wait(3);
 }
\ No newline at end of file