Page 12 Epson Research and Development
Vancouver Design Center
S1D13705 Windows® CE 3.x Display Drivers
X27A-E-006-01 Issue Date: 01/05/25
GrayPalette
This option is intended for the support of monochrome panels only.
The option causes palette colors to be grayscaled for correct display on a mono panel. For
use with color panels this option should not be enabled.
Mode File
The MODE tables (contained in files MODE0.H, MODE1.H, MODE2.H . . .) contain
register information to control the desired display mode. The MODE tables must be
generated by the configuration program 13705CFG.EXE. The display driver comes with
example MODE tables.
By default, only MODE0.H is used by the display driver. New mode tables can be created
using the 13705CFG program. Edit the #include section of MODE.H to add the new mode
table.
If you only support a single display mode, you do not need to add any information to the
WinCE registry. If, however, you support more that one display mode, you should create
registry values (see below) that will establish the initial display mode. If your display driver
contains multiple mode tables, and if you do not add any registry values, the display driver
will default to the first mode table in your list.
To select which display mode the display driver should use upon boot, add the following
lines to your PLATFORM.REG file:
[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13705]
“Width”=dword:140
“Height”=dword:F0
“Bpp”=dword:8
“Rotation”=dword:0
“RefreshRate”=dword:3C
“Flags”=dword:1
Note that all dword values are in hexadecimal, therefore 140h = 320, F0h = 240, and 3Ch
= 60. The value for “Flags” should be 1 (LCD). When the display driver starts, it will read
these values in the registry and attempt to match a mode table against them. All values must
be present and valid for a match to occur, otherwise the display driver will default to the
first mode table in your list.
A WinCE desktop application (or control panel applet) can change these registry values,
and the display driver will select a different mode upon warmboot. This allows the display
driver to support different display configurations and/or orientations. An example appli-
cation that controls these registry values will be made available upon the next release of the
display driver; preliminary alpha code is available by special request.