Download Print this page

Appendix D: Programming The Lcm - Lanner FW-8894 User Manual

Network computing

Advertisement

Appendix D: Programming the LCM

Note:
If you cannot install the driver, check whether you have enabled the parallel port in the
BIOS setting. Once the message of "insmod": error inserting 'plcm_drv.ko': -1 Input/output error"
appears, please check that whether the major number is repeated or not. The major number
needed with the "mknod" command varies with different software versions; please look up the Readme file
for this value.
This section contains sample executable programs that you could test on your platform. It demonstrates
some useful functionality that the LCM provides. Note that the installation needs to be completed before
proceeding with these executions.
To execute, run the command:
#./plcm_test
Backlight Off/On turning off/on the backlight of the LCM display
Display Off turning off the LCM display
Cursor Off/On NOT showing/showing the cursor on the LCM display
Blinking off/On turning off/on the cursor blinking
Writing "Lanner@Taiwan" displaying the specific sentences
Reading "Lanner@Taiwan" reading the specific sentence
CGram Test displaying the user-stored characters
Keypad Testing Get the keypad input: the 1st button is read in as Left, the 2nd button is read in as Up, the
3rd button is read in as Right, and the 4th button is read in as Down)
Corresponding Commands for "plcm_test"
You can directly input the specific command to have its corresponding function worked on your LCM. This
will be much more convenient once you would like to merely execute the keypad testing.
-On
— Turn on the backlight of the LCM display.
— To execute, please type:
#./plcm_test -On
-Off
— Turn off the backlight of the LCM display.
— To execute, please type:
#./plcm_test –Off
-LCM1
— Writing "Lanner@Taiwan" in line1.
— To execute, please type:
#./plcm_test -LCM1
85

Advertisement

loading