Options
IR Basics
Hi
I went on the P1 course a few months back. The time has come to do my first project. I have the rs232 control that I need working. Its now time to do the IR. I have located the IR database which I need and mapped it to the port. Do I have to define the constant number relevant to what number it is in IR EDIT? this is the code I have then written. Is this the right way?
DEFINE_CONSTANT
//denon amp
denon_onoff = 9
denon_volume_up = 24
denon_volume_dwn = 25
DEFINE_EVENT
//denon button events
button_event[dvtp,28]
button_event[dvtp,29]
{
PUSH:
{
switch(button.input.channel)
{
case 28: pulse[dvIRAMP,denon_volume_dwn]
case 29: pulse[dvIRAMP,denon_volume_up]
}
}
}
On notifications I can see that the button I press is activating the correct channel, but it doesnt seem to be sending an IR signal out.
Any pointers would be helpful
Thanks
Dave
I went on the P1 course a few months back. The time has come to do my first project. I have the rs232 control that I need working. Its now time to do the IR. I have located the IR database which I need and mapped it to the port. Do I have to define the constant number relevant to what number it is in IR EDIT? this is the code I have then written. Is this the right way?
DEFINE_CONSTANT
//denon amp
denon_onoff = 9
denon_volume_up = 24
denon_volume_dwn = 25
DEFINE_EVENT
//denon button events
button_event[dvtp,28]
button_event[dvtp,29]
{
PUSH:
{
switch(button.input.channel)
{
case 28: pulse[dvIRAMP,denon_volume_dwn]
case 29: pulse[dvIRAMP,denon_volume_up]
}
}
}
On notifications I can see that the button I press is activating the correct channel, but it doesnt seem to be sending an IR signal out.
Any pointers would be helpful
Thanks
Dave
Comments
This allows you to use the same buttons over and over again. Just modify the map for different Models of DVD.
Thanks