Example for my HC-SR04 Ultrasonic Sensor library.

Dependencies:   C12832 HCSR04 mbed

Fork of Utrasonic_Example by Leong Kum Loong (NYP)

Revision:
3:a7677858ce0b
Parent:
0:bb6f81d15af7
--- a/main.cpp	Mon Dec 04 01:32:26 2017 +0000
+++ b/main.cpp	Mon Dec 04 04:36:18 2017 +0000
@@ -30,6 +30,7 @@
     joyCtr.rise(config);
     getDistance();  //Start retrieving distance.
     lcd.cls();
+    
     while(1) {
         lcd.locate(0,1);
         lcd.printf(str, readDistance());    //Read retrieved distance.