Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aron-bordin committed Apr 9, 2015
1 parent 53f106f commit e4aede8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/ultrasonic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Simple Example
--------------

Include the library

.. code-block:: c
#include "Ultrasonic.h"
Expand All @@ -24,7 +25,9 @@ Create a new Ultrasonic object
Ultrasonic *ult = new Ultrasonic(A5, A4); //TRIGGER_PIN and ECHO_PIN
Now you can use any method on **void loop()**::
Now you can use any method on **void loop()**

.. code-block:: c
Serial.println(ult->readDistanceCM());
Expand Down

0 comments on commit e4aede8

Please sign in to comment.