Skip to content

Instantly share code, notes, and snippets.

@bshillingford
Created July 6, 2018 22:43
Show Gist options
  • Save bshillingford/994b349e5c6bc28c883e871000229f3a to your computer and use it in GitHub Desktop.
Save bshillingford/994b349e5c6bc28c883e871000229f3a to your computer and use it in GitHub Desktop.
Arduino: IR remote data for Ambilight
// For Phillips Ambilight TV
#include <IRremote.h>
IRsend irsend;
// Raw data recorded from a few buttons:
unsigned int mute[40] = {2700,850,500,750,500,400,500,350,1350,1200,500,400,500,350,500,350,500,400,500,350,500,350,500,400,500,350,500,350,500,400,450,400,950,350,500,800,950,2850,50,};
unsigned int power[42] = {2700,850,500,750,500,400,500,350,1350,1200,500,400,500,350,500,350,500,400,500,350,500,350,500,400,500,350,500,350,500,400,450,400,950,350,500,800,500,350,500,2800,200,};
unsigned int netflix[38] = {2700,850,500,750,550,300,500,350,1400,1200,550,300,550,350,500,350,500,350,550,350,500,350,500,350,500,400,900,400,500,350,500,800,950,350,550,750,500,};
unsigned int smarttv[40] = {2700,800,500,800,500,350,500,350,1400,1200,500,350,500,350,500,400,500,350,500,350,500,400,500,350,950,800,950,350,500,350,500,400,500,350,500,800,500,2250,1200,};
unsigned int vol_up[42] = {2700,850,500,750,500,350,500,400,450,800,950,350,500,400,450,400,500,350,500,400,450,400,500,350,500,350,500,400,500,350,500,350,950,800,500,350,500,400,500,350,500,};
unsigned int vol_down[40] = {2700,850,500,800,450,400,500,350,500,750,950,400,450,400,500,350,500,350,500,400,500,350,500,350,500,400,500,350,500,350,500,400,900,800,500,400,500,350,950,};
#define raw_data mute
void setup() {}
void loop() {
irsend.sendRaw(
raw_data,
sizeof(raw_data) / sizeof(raw_data[0]),
/*freq=*/38);
delay(5000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment