Tamaryn Thomson / SRF02

Fork of SRF02 by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
eencae
Date:
Sun Mar 08 14:21:40 2015 +0000
Parent:
0:b729d2ce03bd
Child:
2:548b60c4cc15
Commit message:
Updated docs

Changed in this revision

SRF02.h Show annotated file Show diff for this revision Revisions of this file
--- a/SRF02.h	Sun Mar 08 14:15:29 2015 +0000
+++ b/SRF02.h	Sun Mar 08 14:21:40 2015 +0000
@@ -58,10 +58,24 @@
 {
 public:
 
+    /** Create a SRF02 object connected to the specified I2C pins
+    *
+    * @param sdaPin - mbed SDA pin 
+    * @param sclPin - mbed SCL pin
+    * 
+    */
     SRF02(PinName sdaPin, PinName sclPin);
+    /** Read distance in centimetres
+    *
+    * @returns distance in centimetres (int)
+    * 
+    */
     int getDistanceCm();
 
 private:
+    /** Hangs in infinite loop flashing 'blue lights of death'
+    *
+    */ 
     void error();