[Ir]Ad Notam
Massimo
Posts: 5
Hi to all,
is my first post in this forum and I hope to write in the right section.
I need to find the discrete ir codes to switch on or off an Ad Notam Lcd monitor.
Thanks for the support.
is my first post in this forum and I hope to write in the right section.
I need to find the discrete ir codes to switch on or off an Ad Notam Lcd monitor.
Thanks for the support.
0
Comments
MODULE_NAME='AdNotam_COMM'(dev vdvTV,dev dvTV)
(***********************************************************)
(***********************************************************)
(* FILE_LAST_MODIFIED_ON: 04/04/2006 AT: 11:33:16 *)
(***********************************************************)
(* System Type : NetLinx *)
(***********************************************************)
(* REV HISTORY: *)
(***********************************************************)
(*
$History: $
*)
#INCLUDE 'SNAPI'
(***********************************************************)
(* CONSTANT DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_CONSTANT
CHAR PowerOFF[] = {$bb,$00,$1f,$01,$01,$21}
CHAR PowerON[] = {$bb,$00,$1f,$01,$00,$20}
CHAR CompVideo[] = {$bb,$00,$20,$02,$00,$0d,$1f}
(***********************************************************)
(* VARIABLE DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_VARIABLE
volatile char flagTV_AD_Notan_On //0 - off,1-on
(***********************************************************)
(* STARTUP CODE GOES BELOW *)
(***********************************************************)
DEFINE_START
wait 10
send_command dvTV, 'SET BAUD 57600,N,8,1'
DEFINE_EVENT
BUTTON_EVENT[vdvTV,POWER]
{
PUSH:
{
IF( !flagTV_AD_Notan_On)
{
SEND_STRING dvTV,PowerON
ON[vdvTV,LAMP_POWER_FB]
}
ELSE
{
SEND_STRING dvTV,PowerOFF
OFF[vdvTV,LAMP_POWER_FB]
}
}
}
BUTTON_EVENT[dvTV,SOURCE_TV1]
{
PUSH:
{
SEND_STRING dvTV,CompVideo
}
}