first commit
This commit is contained in:
40
IRTelecommande/IRTelecommande.ino
Executable file
40
IRTelecommande/IRTelecommande.ino
Executable file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
|
||||
* An IR LED must be connected to Arduino PWM pin 3.
|
||||
* Version 0.1 July, 2009
|
||||
* Copyright 2009 Ken Shirriff
|
||||
* http://arcfn.com
|
||||
*/
|
||||
|
||||
#include <IRremote.h>
|
||||
|
||||
/* Télé
|
||||
ON/OFF 20DF10EF FFFFFFFF FFFFFFFF
|
||||
Volume : + 20DF40BF - 20DF807F
|
||||
HDMI :
|
||||
On/OFF FFC03F FFFFFFFF
|
||||
1 FF906F FFFFFFFF
|
||||
2 FFD02F FFFFFFFF
|
||||
3 FF30CF FFFFFFFF
|
||||
4 FFB04F FFFFFFFF
|
||||
5 FF708F FFFFFFFF
|
||||
Canal :
|
||||
ON/OFF 33D1A037 90C2EAFD
|
||||
*/
|
||||
|
||||
|
||||
IRsend irsend;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if (Serial.read() != -1) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
irsend.sendSony(0xa90, 12); // Sony TV power code
|
||||
delay(40);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user