Chris Powers / HCSR04
Revision:
2:daacb9d21d73
Parent:
1:6f9e41e319ad
--- a/HCSR04.h	Wed Jun 03 17:04:17 2020 +0000
+++ b/HCSR04.h	Wed Jun 03 17:05:41 2020 +0000
@@ -1,5 +1,6 @@
 //-------------------------------------
 // Short Example how to use this class:
+// [returns Distance in cm(float)]
 //-------------------------------------
 /*
 #include "mbed.h"
@@ -16,7 +17,7 @@
     {
         if(sensor.checkUpdate())
         {
-            pc.printf("Distance: %.2f \n", sensor.getDistance());
+            pc.printf("Distance: %.2fcm \n", sensor.getDistance());
         }
     }
     return 0;