Skip to content

Instantly share code, notes, and snippets.

@fyra
Created December 11, 2020 14:11
Show Gist options
  • Save fyra/6133766c8b4ea51dc1ae8ac52c9c0883 to your computer and use it in GitHub Desktop.
Save fyra/6133766c8b4ea51dc1ae8ac52c9c0883 to your computer and use it in GitHub Desktop.
Backleds TV controller
Tested a generic USB LED controller with ir remote used for lighting up behind
a tv, remote has 24 keys,
Used a YTF IR Bridge with tasmota on it for testing, irecv's "DataLSB" field
makes more sense than "Data" so the following uses that.
First four bytes are the same for all keys, (0x00EF)
Next two bytes are key code, (0x00-0x17) for a total of 24 keys,
Last two bytes are mirrored keycode (0xFF - keycode).
I tested every code up to key, 0xFF none of them did anything.
The remote has keys laid out in four columns and six rows starting from top left:
0x00EF00FF 00 Brightness Up (Does nothing)
0x00EF01FE 01 Brightness Down (Does nothing)
0x00EF02FD 02 Power Off
0x00EF03FC 03 Power On
0x00EF04FB 04 Red
0x00EF05FA 05 Green
0x00EF06F9 06 Blue
0x00EF07F8 07 White
0x00EF08F7 08 -red-green 1
0x00EF09F6 09 -green-blue 1
0x00EF0AF5 0A -blue-red 1
0x00EF0BF4 0B Flash Red Green Blue Yellow Magenta Cyan White (label: Flash)
0x00EF0CF3 0C -red-green 2
0x00EF0DF2 0D -green-blue
0x00EF0EF1 0E -blue-red
0x00EF0FF0 0F Pulse white bright to dim and back (label: Strobe)
0x00EF10EF 10 -red-green 3
0x00EF11EE 11 -green-blue
0x00EF12ED 12 -blue-red
0x00EF13EC 13 Smooth transition between colors (label: Fade)
0x00EF14EB 14 -red-green 4
0x00EF15EA 15 -green-blue
0x00EF16E9 16 -blue-red
0x00EF17E8 17 Flash Red Green Blue (label: Smooth)
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF00FF"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF01FE"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF02FD"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF03FC"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF04FB"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF05FA"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF06F9"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF07F8"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF08F7"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF09F6"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF0AF5"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF0BF4"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF0CF3"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF0DF2"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF0EF1"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF0FF0"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF10EF"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF11EE"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF12ED"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF13EC"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF14EB"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF15EA"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF16E9"}
{"Protocol":"NEC","Bits":32,"DataLSB":"0x00EF17E8"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment