This code is for Ultrasonic HCSR04 with FRDM-KL25Z

Dependencies:   mbed HC_SR04_Ultrasonic_Library

Files at this revision

API Documentation at this revision

Comitter:
mrbhatter
Date:
Tue Sep 03 12:28:35 2019 +0000
Parent:
2:3566c2d1e86b
Commit message:
Ultrasonic with FRDM KL25Z

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 3566c2d1e86b -r 5fb712f78508 main.cpp
--- a/main.cpp	Tue Sep 13 18:16:42 2016 +0000
+++ b/main.cpp	Tue Sep 03 12:28:35 2019 +0000
@@ -7,7 +7,7 @@
     printf("Distance %d mm\r\n", distance);
 }
 
-ultrasonic mu(p6, p7, .1, 1, &dist);    //Set the trigger pin to D8 and the echo pin to D9
+ultrasonic mu(PTC, PTC, .1, 1, &dist);    //Set the trigger pin to D8 and the echo pin to D9
                                         //have updates every .1 seconds and a timeout after 1
                                         //second, and call dist when the distance changes
 
diff -r 3566c2d1e86b -r 5fb712f78508 mbed.bld
--- a/mbed.bld	Tue Sep 13 18:16:42 2016 +0000
+++ b/mbed.bld	Tue Sep 03 12:28:35 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file