Skip to content

Commit

Permalink
Fixed mistake on method name (setHandler to attatchInterrupt)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanseidel committed Oct 23, 2013
1 parent 2b9cfef commit 01222db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ DueTimer myTimer = DueTimer(3); // Creates a Timer 3 object.
DueTimer myTimer = DueTimer(t); // Creates a Timer t object.
// Note: Maximum t allowed is 8, as there is only 9 timers [0..8];

Timer1.setHandler(handler1).start(10);
Timer1.setHandler(handler2).start(10);
Timer1.attatchInterrupt(handler1).start(10);
Timer1.attatchInterrupt(handler2).start(10);
DueTimer myTimer = DueTimer(1);
myTimer.setHandler(handler3).start(20);
myTimer.attatchInterrupt(handler3).start(20);
// Will run only handle3, on Timer 1 (You are just overriding the callback)

Timer.getAvailable().attachInterrupt(callback1).start(10);
Expand Down

0 comments on commit 01222db

Please sign in to comment.