Alonso Angulo / DistanceMaxSonar1
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DistanceMaxSonar.h Source File

DistanceMaxSonar.h

00001 #ifndef MBED_DISTANCEMAXSONAR_H
00002 #define MBED_DISTANCEMAXSONAR_H
00003  
00004 #include "mbed.h"
00005  
00006 class DistanceMaxSonar {
00007     public:
00008         DistanceMaxSonar(PinName MaxS);
00009         float GetInch();
00010         float GetFt();
00011         float Getcm();
00012         float GetM();
00013         
00014          static int bar;
00015          static void isr();
00016 
00017  
00018 
00019         
00020     
00021     private:
00022         AnalogIn _MaxS;
00023 };
00024 #endif