かんたくんのやつです。
Fork of HCSR04 by
Diff: hcsr04.h
- Revision:
- 7:71da0dbf4400
- Parent:
- 6:4be4fcd0c171
- Child:
- 8:0fda00df4357
--- a/hcsr04.h Sat Mar 30 18:52:13 2013 +0000 +++ b/hcsr04.h Sat Mar 30 18:55:03 2013 +0000 @@ -26,7 +26,7 @@ #include "mbed.h" -/** Distance Measure Class(es) +/** HCSR04 Class(es) */ class HCSR04 @@ -43,11 +43,11 @@ */ unsigned int get_dist_cm(void); /** Return the pulse duration equal to sonic waves travelling to obstacle and back to receiver. - * @param pulse duration in microseconds. - */ + * @param pulse duration in microseconds. + */ unsigned int get_pulse_us(void); /** Generates the trigger pulse of 10us on the trigger PIN. - */ + */ void start(void ); void isr_rise(void); void isr_fall(void);