first commit
This commit is contained in:
36
ATMEGA_INFRA_ROUGE/ATMEGA_INFRA_ROUGE.ino
Executable file
36
ATMEGA_INFRA_ROUGE/ATMEGA_INFRA_ROUGE.ino
Executable file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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>
|
||||
|
||||
IRsend irsend;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
//if (Serial.read() != -1) {
|
||||
//for (int i = 0; i < 3; i++) {
|
||||
|
||||
unsigned int buf[] = {29122,500,250,1750,300,1200,300,5450,50,450,100,400,100,650};
|
||||
unsigned int buf2[] = {22964,450,350,400,50,450,50,700,350,650,100,400,350,400,100,400,100,400,150,350,150,350,150,600,400,350,150,350,150,350,150,350,150,350,150,350,200,550};
|
||||
|
||||
Serial.println("Données envoyées");
|
||||
//irsend.sendNEC(0x20DF10EF, 32); // Sony TV power code
|
||||
irsend.sendRaw(buf, 14, 32);
|
||||
delay(40);
|
||||
irsend.sendRaw(buf2, 38, 32);
|
||||
|
||||
delay(2000);
|
||||
//}
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user