added isIdle Method for receiving, #48

This commit is contained in:
Rafi Khan
2015-07-23 19:39:46 -06:00
parent 67330bb22c
commit 07236dd6d5
3 changed files with 12 additions and 5 deletions

View File

@@ -8,15 +8,14 @@
#include <IRremote.h>
IRsend irsend;
IRrecv irrecv;
void setup()
{
Serial.begin(115200);
}
void loop() {
for (int i = 0; i < 3; i++) {
irsend.sendSony(0xa90, 12); // Sony TV power code
delay(40);
}
if (irrecv.isIdle())
Serial.println("Idling");
}