@X4-0047-5
- 22 -
■
LCD contrast setting
You can set LCD contrast of a display for the device.
The command length of the LCD contrast setting is 3 byte.
Syntax
:
C<value><CR>
Notes:
Input value in binary.
The range of value is from 0 to 9.
As shown below, the command line can be also described in binary.
<43h><value><0Dh>
※
hexadecimal representation
For example, in the case of Visual Basic, when you want to set a
default LCD contrast, you can write as follows;
Dim Cmd
Cmd = “C” + Chr(5) + Chr(13)
or
Dim Cmd(2) As Byte
Cmd(0) = 67 : Cmd(1) =5 : Cmd(2) =13
Response
:
command
success
⇒
“VA”(Valid Argument) is returned.
command failure
Bad Command
⇒
“BC” is returned.
Bad Argument
⇒
“BA” is returned.