#include <IRremote.h>
IRsend irsend;
unsigned int Open[73] ={9000,4350,700,1550,750,500,700,450,750,1550,700,550,650,500,700,500,700,450,750,1550,750,1550,700,1550,750,500,700,500,700,450,750,500,700,500,650,500,700,500,600,600,600,550,650,600,600,1650,650,550,650,550,650,550,600,600,600,600,600,600,600,1650,650,550,650,1600,650,600,600,600,600,1650,650,550,650};
unsigned int Close[73] ={9000,4400,700,1550,750,500,700,450,750,500,650,550,650,500,700,500,700,500,700,1550,750,1550,700,1550,750,450,750,450,750,500,700,500,650,500,700,500,700,500,700,500,700,500,700,500,700,1550,700,550,650,500,700,500,700,450,650,550,650,550,650,1650,650,550,650,1600,650,550,650,550,650,1650,650,550,650};
void setup()
{
Serial.begin(9600);
}
void loop() {
irsend.sendRaw(Open,73,38);
delay(3000);
}
用这个控制格力的空调,没有反应,红外发LED应该有发出信号,积木上的灯有闪烁。 |