beautypg.com

Appendix c: programming the lcm, Appendix c, Programming the lcm – Lanner FW-8760 User Manual

Page 47

background image

42

Programming the LCM

Appendix C

Network Application Platforms

Appendix C:

Programming the LCM

The LCD panel module (LCM) is designed to provide real-

time operating status and configuration information for

the system. For sample LCM code, see LCM folder on the

Driver and Manual CD. The driver and the program library

can also be found in the folder.

LCM & KeyPad Function Libary For Linux
File: LLCM1
Copy LCM1.O to your make tool directory.
Ex. if your test program file name is ‘LLCM2
Compile: ‘gcc LLCM1 -o LLCM2 LLCM2.c’
then switch to a root account to run ./LLCM2 for

excution.
Function:
Clear_LCM();
=>This Function is Clear the LCD Module.
=>Direct write the function to your program.
Read_KeyPad();
=>This Function get the KeyPad number if user pressed

key.
=>Direct write function to your program.
Ex.
int a;

a=Read_KeyPad();

Return Value: “1”=>The Upper Key

“2”=>The Down Key

“3”=>The Enter Key

“4”=>The ESC Key

3.Show_Data(int

Dp_Type1,int

Dp_Type2,int

Dp_Type3,int Dp_Type4, char *Showdata1, char

*Showdata2);
=>Show string Function.
=>Dp_type1 => Entry Mode Set
=>Dp_type2 => Display On/Off
=>Dp_type3 => Shift
=>Dp_type4 => Set Function
Please refer the Data Sheet about LCM and Use Decimal

to input
=>Showdata1 & Showdata2 are the strings that you

want to show.
=>Showdata1 Shown on Line1 Limited between 20

Character
=>Showdata2 Shown on Line2 Limited between 20

Character

Ex.
Show_data(0,15,0,56,”1234”,”5678”);