Skip to content

Add some timer abilities#104

Open
this-marwan wants to merge 4 commits intoPaulStoffregen:masterfrom
this-marwan:master
Open

Add some timer abilities#104
this-marwan wants to merge 4 commits intoPaulStoffregen:masterfrom
this-marwan:master

Conversation

@this-marwan
Copy link

Hello!

Alot of times I'd wish I had a stopwatch I can set and reset whenever I need to. Usually I can do this with some workarounds using millis(). And that's what I intended to do with the added functions.
The functions simply mimic the use of millis() but with respect to a point in time the user can choose. (Say 150ms after a certain event happens)

This a first commit. Code Untested.
Added Example that uses timerEvery func
Fix Syntax Highlight
Fixed timerEvery func
(all fixes are tested)
Added example that demonstrates the use of timerReset.
Fixed datatypes of function to unsigned long to allow operation on results of functions.
All functions have been tested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant