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.
Dependencies: mbed rohm-bh1790glc-driver mbed-http FXAS21000 FXOS8700Q ESP8266 RegisterWriter
Revision 3:e6795cb9439c, committed 2013-03-30
- Comitter:
- prabhuvd
- Date:
- Sat Mar 30 18:43:21 2013 +0000
- Parent:
- 2:0acb6ade091c
- Child:
- 4:33938a97d904
- Commit message:
- changed the method name start_measurement to start
Changed in this revision
| hcsr04.cpp | Show annotated file Show diff for this revision Revisions of this file |
| hcsr04.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/hcsr04.cpp Sat Mar 30 18:41:34 2013 +0000
+++ b/hcsr04.cpp Sat Mar 30 18:43:21 2013 +0000
@@ -39,7 +39,7 @@
{
pulsetime.start();
}
-void DistMeasure::start_measurement(void)
+void DistMeasure::start(void)
{
trigger=1;
wait_us(10);
--- a/hcsr04.h Sat Mar 30 18:41:34 2013 +0000
+++ b/hcsr04.h Sat Mar 30 18:43:21 2013 +0000
@@ -44,7 +44,7 @@
unsigned int get_dist_cm(void);
unsigned int get_pulse_us(void);
- void start_measurement(void );
+ void start(void );
void isr_rise(void);
void isr_fall(void);
void fall (void (*fptr)(void));