Smart coffee machine with facial recognition and remote control

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

Committer:
projetmacintel
Date:
Wed Jan 15 11:09:52 2014 +0000
Revision:
0:43669f623d43
dep?t final PAO Macintel

Who changed what in which revision?

UserRevisionLine numberNew contents of line
projetmacintel 0:43669f623d43 1 #include "capteur_tasse.h"
projetmacintel 0:43669f623d43 2
projetmacintel 0:43669f623d43 3 SRF05 capteurTasse(p10, p9);
projetmacintel 0:43669f623d43 4
projetmacintel 0:43669f623d43 5 bool tasseEnPlace()
projetmacintel 0:43669f623d43 6 {
projetmacintel 0:43669f623d43 7 return getDistanceDetectee() < 7;
projetmacintel 0:43669f623d43 8 }
projetmacintel 0:43669f623d43 9
projetmacintel 0:43669f623d43 10 int getDistanceDetectee()
projetmacintel 0:43669f623d43 11 {
projetmacintel 0:43669f623d43 12 return (int)capteurTasse.read();
projetmacintel 0:43669f623d43 13 }
projetmacintel 0:43669f623d43 14
projetmacintel 0:43669f623d43 15 void attlendreUnMouvement()
projetmacintel 0:43669f623d43 16 {
projetmacintel 0:43669f623d43 17 wait(3);
projetmacintel 0:43669f623d43 18 }