From 01222db95a9e6c1192fac760e86688c6a8c1bbb2 Mon Sep 17 00:00:00 2001 From: Ivan Seidel Date: Wed, 23 Oct 2013 17:58:27 -0200 Subject: [PATCH] Fixed mistake on method name (setHandler to attatchInterrupt) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6c0e3f..b4bbe41 100644 --- a/README.md +++ b/README.md @@ -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);