
Appendix E: Programming the LCM
97
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.
Execute
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
-LCM2
Summary of Contents for HTCA-6400
Page 45: ...Chapter 4 BIOS Setup 45 Trusted Computing TPM 2 0...
Page 47: ...Chapter 4 BIOS Setup 47 Trusted Computing PTT Enable...
Page 49: ...Chapter 4 BIOS Setup 49 AST2500 Super IO Configuration...
Page 68: ...HTCA 6400 User Manual 68 Server ME Configuration...
Page 71: ...Chapter 4 BIOS Setup 71 Processor Configuration...