Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Mon Jul 18 2022 22:47:00 by
1.7.2