Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created November 28, 2015 15:01
Show Gist options
  • Save michaelsarduino/dc0d1d0d26f94e421a8d to your computer and use it in GitHub Desktop.
Save michaelsarduino/dc0d1d0d26f94e421a8d to your computer and use it in GitHub Desktop.
#include <IRremote.h> // IRremote Bibliothek nachladen
IRsend irsend;
// RAW Signal zum an/ausschalten des Fernsehers
unsigned int powerOn[68] = {4500, 4450, 600, 1600, 600, 1650, 550, 1650, 600, 500, 600, 550, 550, 550, 600, 500, 600, 500, 600, 1650, 550, 1650, 600, 1650, 550, 550, 550, 550, 600, 500, 600, 500, 600, 550, 550, 550, 550, 1650, 600, 500, 600, 550, 550, 550, 550, 550, 600, 500, 600, 500, 600, 1600, 600, 550, 600, 1600, 600, 1650, 550, 1650, 600, 1650, 550, 1650, 600, 1650, 550};
void setup()
{
Serial.begin(9600);
delay(1000);
irsend.sendRaw(powerOn,68,38); //RAW Signal, laenge, frequenz meistens 38kHz
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment