Skip to content

Instantly share code, notes, and snippets.

View pictographer's full-sized avatar

John D. Corbett pictographer

View GitHub Profile
@Ekus
Ekus / EkusTVRemote.ino
Created January 12, 2016 03:01
Arduino sketch that sends an IR signal to turn Samsung TV on/off every time it receives a byte (any byte) using serial connection.
#include <IRremote.h>
IRsend irsend;
//samsung tv power on/off
unsigned int S_pwr[68]={4600,4350,700,1550,650,1550,650,1600,650,450,650,450,650,450,650,450,700,400,700,1550,650,1550,650,1600,650,450,650,450,650,450,700,450,650,450,650,450,650,1550,700,450,650,450,650,450,650,450,650,450,700,400,650,1600,650,450,650,1550,650,1600,650,1550,650,1550,700,1550,650,1550,650};
void setup()
{
Serial.begin(9600);
}