Hi guys,
I'm very new to arduino and have a pretty basic grasp of C so far. For my first proper project I'm trying to create a remote that will control my Sony TV. Lucky for me, the example that comes with the IRremote Library has a code for the Sony Power button which looks something like this.
for (int i = 0; i < 3; i++)
{
irsend.sendSony(0xa90, 12); // Sony TV power code
delay(40);
}
I've got this working with a click button and it is now turning my TV on/off when pressed. So far so good.
Now my problem is finding the codes for the rest of the buttons and I was hoping that someone might be able to refer me to a list. In the code above 0xa90 is used to identify the power command. I have two main questions.
-
What is the format called when something is written like 0xa90?
-
When searching online for Sony TV IR hexadecimal commands, I get a lot of results that look like this.
0000 0067 0000 000d 0061 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 0403
What is this format called and how do I convert it into a code like '0xa90' that will work with the IRremote library? Does the library contain a list of preset command I can look at?
Any help will be greatly appreciated.