Last active
June 21, 2025 14:22
-
-
Save Derpidoo/e3042055e0f5c3708f9b98b75fe4d59e to your computer and use it in GitHub Desktop.
RGB LED Strip Controller 44 Button IR Remote Codes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.