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 6ceca6f commit 53f106f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/timer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Simple Example
--------------

Include the library

.. code-block:: c
#include "Timer.h"
Expand All @@ -29,12 +30,14 @@ Create a new Timer object
Timer *timer1 = new Timer(6000); //timer with 6 seconds
Add the following methods in **void setup()**

.. code-block:: c
timer1->setOnTimer(&FunctionCallback);
timer1->Start(); //start the thread.
Now add this method on **void loop()**

.. code-block:: c
timer1->Update(); //will check the Timer and if necessary, will run it.
Expand Down

0 comments on commit 53f106f

Please sign in to comment.