Smart coffee machine with facial recognition and remote control

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

capteur_tasse.cpp

Committer:
projetmacintel
Date:
2014-01-15
Revision:
0:43669f623d43

File content as of revision 0:43669f623d43:

#include "capteur_tasse.h"

SRF05 capteurTasse(p10, p9);

bool tasseEnPlace()
{
    return getDistanceDetectee() < 7;
}

int getDistanceDetectee()
{
    return (int)capteurTasse.read();
}

void attlendreUnMouvement()
{
    wait(3);
}