Wireless project using Xbee
Fork of HC_SR04_Ultrasonic_Library by
Revision 1:114e0698a5d2, committed 2014-11-23
- Comitter:
- ejteb
- Date:
- Sun Nov 23 20:34:26 2014 +0000
- Parent:
- 0:6aa04a8c8d4c
- Child:
- 2:cc1143d36567
- Commit message:
- Ultrasonic with interrupts
Changed in this revision
| ultrasonic.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ultrasonic.h Sun Nov 23 20:27:09 2014 +0000
+++ b/ultrasonic.h Sun Nov 23 20:34:26 2014 +0000
@@ -6,6 +6,7 @@
class ultrasonic
{
public:
+
ultrasonic(PinName trigPin, PinName echoPin, float updateSpeed, float timeout);
ultrasonic(PinName trigPin, PinName echoPin, float updateSpeed, float timeout, void onUpdate(int), void onTrig(void),void onStartTimer(void)/*, Timer *t*/ );
int getCurrentDistance(void);
