para la tarea

Committer:
alonsoangulo
Date:
Thu Mar 27 23:34:51 2014 +0000
Revision:
0:8d03124897ca
dfafs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alonsoangulo 0:8d03124897ca 1 #ifndef MBED_DISTANCEMAXSONAR_H
alonsoangulo 0:8d03124897ca 2 #define MBED_DISTANCEMAXSONAR_H
alonsoangulo 0:8d03124897ca 3
alonsoangulo 0:8d03124897ca 4 #include "mbed.h"
alonsoangulo 0:8d03124897ca 5
alonsoangulo 0:8d03124897ca 6
alonsoangulo 0:8d03124897ca 7 class DistanceMaxSonar {
alonsoangulo 0:8d03124897ca 8 public:
alonsoangulo 0:8d03124897ca 9
alonsoangulo 0:8d03124897ca 10 DistanceMaxSonar(PinName MaxS);
alonsoangulo 0:8d03124897ca 11 float GetInch();
alonsoangulo 0:8d03124897ca 12 float GetFt();
alonsoangulo 0:8d03124897ca 13 float Getcm();
alonsoangulo 0:8d03124897ca 14 float GetM();
alonsoangulo 0:8d03124897ca 15
alonsoangulo 0:8d03124897ca 16
alonsoangulo 0:8d03124897ca 17 private:
alonsoangulo 0:8d03124897ca 18 AnalogIn _MaxS;
alonsoangulo 0:8d03124897ca 19 };
alonsoangulo 0:8d03124897ca 20 #endif
alonsoangulo 0:8d03124897ca 21