|
-
- #ifndef Ping_h
- #define Ping_h
-
- #include "Arduino.h"
-
- class Ping
- {
- public:
- Ping(int pin);
- Ping(int pin, double in, double cm);
- void fire();
- int microseconds();
- double inches();
- double centimeters();
- private:
- int _pin;
- double _in;
- double _cm;
- long _duration;
- };
-
- #endif
|