mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-03 20:12:52 +00:00
added isIdle Method for receiving, #48
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user