-
-
Save Derpidoo/e3042055e0f5c3708f9b98b75fe4d59e to your computer and use it in GitHub Desktop.
Awesome. Thank you. Do you know if there are MORE than 44 codes? Are there ways to send ANY color? Also, I have the PLAY = Off / POWER = On
any app on android for ir shit? i got an integrated ir lamp
if someone need with this:
0xFF3AC5
0xFFBA45
0xFF827D
0xFF02FD
0xFF1AE5
0xFF9A65
0xFFA25D
0xFF22DD
0xFF2AD5
0xFFAA55
0xFF926D
0xFF12ED
0xFF0AF5
0xFF8A75
0xFFB24D
0xFF32CD
0xFF38C7
0xFFB847
0xFF7887
0xFFF807
0xFF18E7
0xFF9867
0xFF58A7
0xFFD827
0xFF28D7
0xFFA857
0xFF6897
0xFFE817
0xFF08F7
0xFF8877
0xFF48B7
0xFFC837
0xFF30CF
0xFFB04F
0xFF708F
0xFFF00F
0xFF10EF
0xFF906F
0xFF50AF
0xFFD02F
0xFF20DF
0xFFA05F
0xFF609F
0xFFE01F
While this is technically the codes you get, the full code is 32 bits, 8 bits of address, 8 bits of address inverted, 8 bits of command, and 8 bits of command inverted. The 'address' is always 0x00, so the 0xFF here is just the address inverted.
So for example, 0xFF02FD (power button) is really 0x00FF02FD. Lets call this byte3 | byte2 | byte1 | byte0. Once you verify that byte3 == ~byte2 and byte1 == ~byte0, the command is just byte1, or just 0x02. These inverted codes are something like a checksum, if something gets garbled, you'll likely not garble two bytes in such a way that they are the inverse of each other.
Does this make any bit of damned difference? Not really, but if you want to save a bit of space encoding your lookup table, you can validate the bit inverse stuff, and then throw away the inverted bits and just use the code.
I guess this also says a remote can only ever have a max of 256 keys. To paraphrase Bill Gates, that seems like enough.
Thank you. it works