Libreria para usar sensor MaxSonar EZ01 con PulseWidth

Dependents:   sensorPulse

MaxSonar.h

Committer:
migool
Date:
2014-03-27
Revision:
0:de1c628c1495

File content as of revision 0:de1c628c1495:

#ifndef MBED_MAXSONAR_H
#define MBED_MAXSONAR_H

#include "mbed.h"

class MaxSonar{
public:
    MaxSonar(PinName pin);
    float getinches();
    float getcm();
private:
    InterruptIn _pin;
    void up();
    void down();
    float pulse();
};

#endif