Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Arduino program that receives an 8-byte command to be received by a Panasonic TV over infrared.
#include <IRremote.h>
IRsend irsend;
void setup() {
pinMode(3, OUTPUT);
pinMode(13, OUTPUT);
void loop() {
while (Serial.available() > 7) {
union u_tag {
byte b[8];
unsigned long long ulval;
} u;
u.b[0] =;
u.b[1] =;
u.b[2] =;
u.b[3] =;
u.b[4] =;
u.b[5] =;
u.b[6] =;
u.b[7] =;
irsend.sendPanasonic(u.ulval, 48);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment