Chris Powers / HCSR04

Files at this revision

API Documentation at this revision

Comitter:
Powers
Date:
Wed Jun 03 17:05:41 2020 +0000
Parent:
1:6f9e41e319ad
Commit message:
Version 0.3

Changed in this revision

HCSR04.h Show annotated file Show diff for this revision Revisions of this file
--- 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;