#ifndef USS_H_
#define USS_H_

#include "mbed.h"
#include "LM61CIZ.h"
#include "Pulse.h"

class USS {
    public:
    USS(PinName echoPin, PinName trigPin, PinName tempPin);
    double ReadDis(void);
    double GetDis(void);
    private:
    float distance_;
    PulseInOut echo_;
    PulseInOut trig_;
    LM61CIZ temp_;
};

#endif //ULTRASONI_H_