Leong Kum Loong (NYP) / Mbed 2 deprecated Utrasonic_Example

Dependencies:   C12832 HCSR04 mbed

Fork of Utrasonic_Example by Leong Kum Loong (NYP)

Files at this revision

API Documentation at this revision

Comitter:
reesey
Date:
Mon Dec 04 04:36:18 2017 +0000
Parent:
2:1a9f9b72c6a0
Commit message:
Written by Leong Kum Loong.; 04 Dec 2017, REV. 0; ; When HCSR04.h reference is included, DO NOT declare pin p21 & p22 as it is used by my library.

Changed in this revision

HCSR04.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HCSR04.lib	Mon Dec 04 01:32:26 2017 +0000
+++ b/HCSR04.lib	Mon Dec 04 04:36:18 2017 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/Leong-Kum-Loong/code/Ultrasonic_Example/#27ee973552a9
+https://os.mbed.com/teams/Leong-Kum-Loong/code/HCSR04/#c9ffa237213b
--- 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.