Skip to content

Instantly share code, notes, and snippets.

Created January 12, 2016 03:01
What would you like to do?
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()
void loop() {
if ( != -1) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment