Volume control for LG TVs via RS232
mvador
Posts: 17
Can anyone help me Volume up/down for LG tvs ??
The volume control command is 'k f 00 ~ 64' but how would I incorporate it into volume up/down ??
Thanks.
The volume control command is 'k f 00 ~ 64' but how would I incorporate it into volume up/down ??
Thanks.
0
Comments
--John
http://www.amxforums.com/showpost.php?p=40282&postcount=5
SEND_STRING dvTV, "'k f ',ITOHEX(nVolume)"
is just sending the current volume value to the TV. How does that variable get increased with the button press? Is it like this:
SEND_STRING dvTV, "'k f ',ITOHEX(nVolume(+1))" ?
Or would I use constants set to 1 and -1, accordingly?
Or would I create another variable that changed based on pressing vol up or vol down, where it would set itself to 1 or -1?
thats a very simplified way of doing it. I would actually do it with a button array to discern whether you were pushing the UP or DOWN button using GET_LAST and compressing it all to a single button event. you will need holds and repeats too i would think. Or do it with a LEVEL_EVENT using a bargraph, using Level control buttons, that way you only need the one LEVEL_EVENT and let the TP do the incre-/decrementing.
Exactly, except I use timelines and functions for it (coupled with button arrays.) The timeline does the "repeat" portion, and the function does the management of variables & strings; this way, if there's multiple devices that do volume (say an Autopatch and an Integra receiver), you can use one button event for all touch panels.