Skip to content

Commit 18591b0

Browse files
committed
Add delay to IRrecvDemo Loop preventing duplicates
Prevents duplicates in serial when button was only pressed once.
1 parent 6c7e2e0 commit 18591b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/IRrecvDemo/IRrecvDemo.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ void loop() {
2525
Serial.println(results.value, HEX);
2626
irrecv.resume(); // Receive the next value
2727
}
28+
delay(100);
2829
}

0 commit comments

Comments
 (0)