Smart coffee machine with facial recognition and remote control

Dependencies:   Camera_LS_Y201 EthernetInterface EthernetNetIf HTTPClient SRF05 TextLCD mbed-rtos mbed-src

Revision:
0:43669f623d43
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/capteur_tasse.cpp	Wed Jan 15 11:09:52 2014 +0000
@@ -0,0 +1,18 @@
+#include "capteur_tasse.h"
+
+SRF05 capteurTasse(p10, p9);
+
+bool tasseEnPlace()
+{
+    return getDistanceDetectee() < 7;
+}
+
+int getDistanceDetectee()
+{
+    return (int)capteurTasse.read();
+}
+
+void attlendreUnMouvement()
+{
+    wait(3);
+}
\ No newline at end of file