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: C12832 HCSR04 mbed
Fork of Utrasonic_Example by
Revision 3:a7677858ce0b, committed 2017-12-04
- 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.