From 18591b037c638c1c611c8ae4b8c2a0caefe9c977 Mon Sep 17 00:00:00 2001 From: P THE AWESOME Date: Mon, 4 Aug 2014 16:19:07 -0500 Subject: [PATCH] Add delay to IRrecvDemo Loop preventing duplicates Prevents duplicates in serial when button was only pressed once. --- examples/IRrecvDemo/IRrecvDemo.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/IRrecvDemo/IRrecvDemo.ino b/examples/IRrecvDemo/IRrecvDemo.ino index f7b45b8..3a49832 100644 --- a/examples/IRrecvDemo/IRrecvDemo.ino +++ b/examples/IRrecvDemo/IRrecvDemo.ino @@ -25,4 +25,5 @@ void loop() { Serial.println(results.value, HEX); irrecv.resume(); // Receive the next value } + delay(100); }