#include <IRremote.h>
IRsend irsend;
int pin = 3;
void setup(){
Serial.begin(9600);
}
void loop(){
pinMode(pin, OUTPUT);
digitalWrite(pin, HIGH);
for (int i = 0; i<3; i++){
irsend.sendSony(0x5422,15);
delay(40);
}
delay(1000);
Serial.println("transmitted");
}
No comments:
Post a Comment