para la tarea
Diff: Distance_sensor.h
- Revision:
- 0:8d03124897ca
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Distance_sensor.h Thu Mar 27 23:34:51 2014 +0000 @@ -0,0 +1,21 @@ +#ifndef MBED_DISTANCEMAXSONAR_H +#define MBED_DISTANCEMAXSONAR_H + +#include "mbed.h" + + +class DistanceMaxSonar { + public: + + DistanceMaxSonar(PinName MaxS); + float GetInch(); + float GetFt(); + float Getcm(); + float GetM(); + + + private: + AnalogIn _MaxS; +}; +#endif + \ No newline at end of file