Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sstaub committed Apr 3, 2018
2 parents 58c8d0f + 4975ea4 commit 6200cd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you use delay(), the Ticker will be ignored! You cannot use delay() command w

## Example

Complete example. Here we created three timers, you can run it and test the result in the Serial monitor and the on board LED.
Complete example. Here we created five timers, you can run it and test the result in the Serial monitor and the on board LED.

```
#include "Ticker.h"
Expand Down Expand Up @@ -135,8 +135,12 @@ STOPPED / RUNNING / PAUSED
**Ticker(fptr callback, uint32_t timer, uint16_t repeats = 0, resolution_t resolution = MICROS)**<br>
Creates a Ticker object
- parameter callback for the function name you want to call
<<<<<<< HEAD
- parameter timer sets the interval time in ms
- parameter interval resolution can changed to us instead of ms with setting the parameter resolution to MICROS_MICROS
=======
- parameter interval sets the interval time in ms or us when using MICROS_MICROS with the resolution parameter
>>>>>>> 4975ea4e54a95d6d9ad649e67b3b5889e1067214
- parameter repeats sets the number of repeats the callback should executed, 0 is endless
- parameter resolution sets the internal resolution of the Ticker, it can MICROS, MICROS_MICROS or MILLIS

Expand Down Expand Up @@ -167,10 +171,10 @@ Changes the interval time of the Ticker.
Returns the state of the Ticker.

**uint32_t elapsed()**<br>
Returns the time passed since the last tick.
Returns the time passed since the last tick, ms or us depending from the resolution.

**uint16_t counter()**<br>
Get the number of executed callbacks.
Returns the number of executed callbacks.



0 comments on commit 6200cd0

Please sign in to comment.