TX-MLCD Mini-LCD Transmitter AXCESS Programming 9
DEFINE_VARIABLE
BA[4] (* LCD VARIABLE FORMAT *)
BB[4]
BC[2] (* BA BC FILL BD BF *)
BD[2] (* BB ( SOURCE ) BE *)
BE[4]
BF[4]
FILL[4]
SOURCE[6]
BTEMP[4] (* FOR TEMPORARILY SAVING BA, BB, BC, BD, BE, OR BF *)
RC (* RADIO CODE OFFSET AFTER MENU SELECTION *)
(***********************************************************)
(* LATCHING DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_LATCHING
(***********************************************************)
(* DEFINE CALLS GO BELOW *)
(***********************************************************)
DEFINE_CALL 'LCD' (* UPDATE LCD SCREEN *)
{
SEND_STRING MLCD,"$0C" (* CLEAR SCREEN AND MOVE
CURSOR HOME *)
SEND_STRING MLCD,"BA,BC,FILL,BD,BF" (* WRITE FIRST LINE *)
SEND_STRING MLCD,"$11,2,1" (* MOVE CURSOR TO LINE 2
COLUMN 1 *)
SEND_STRING MLCD,"BB,'(',SOURCE,')',BE" (* WRITE SECOND LINE *)
}
(***********************************************************)
(* STARTUP CODE GOES BELOW *)
***********************************************************
DEFINE_START
(***********************************************************)
(* THE ACTUAL PROGRAM GOES BELOW *)
(***********************************************************)
DEFINE_PROGRAM
PUSH[MLCD,3]
{
TO[MLCD,1] (* MENU SELECTION 1 TRANSMITS RC 1, DELETE LINE IF
NOT NEEDED *)
BA=' ' BC=' ' FILL=' ' BD=' ' BF=' ON'
BB=' ' SOURCE=' IBM ' BE=' OFF'
CALL'LCD'
RC=32 (* OFFSET FOR RADIO CODES, FUNCTIONS 1-6 WILL
TRANSMIT 32-37 *)