English
Language : 

SED1374 Datasheet, PDF (158/420 Pages) Epson Company – SED1374 Embedded Memory Color LCD Controller
Page 62
Epson Research and Development
Vancouver Design Center
{
printf("\nERROR: Could not register SED1374 device.");
exit(1);
}
/*
** Get the product code to verify this is an SED1374.
** NOTE: If the SED1374 design is modified then the
**
product identification change. Additional IDs
**
will have to be checked for.
*/
seGetId(Device, &ChipId);
if (ID_SED1374F0A != ChipId)
{
printf("\nERROR: Did not detect an SED1374.");
exit(1);
}
/*
** Initialize the SED1374.
** This step programs the registers with values taken from
** the HalInfo struct in appcfg.h.
*/
if (ERR_OK != seSetInit(Device))
{
printf("\nERROR: Could not initialize device.");
exit(1);
}
/*
** The default initialization cleared the display.
** Draw a 100x100 red rectangle in the upper left corner (0,0)
** of the display.
*/
seDrawRect(Device, 0, 0, 100, 100, 1, TRUE);
/*
** Pause here.
*/
getch();
/*
** Clear the display. Do this by writing 40960 bytes
*/
seWriteDisplayBytes(Device, 0, 0, FORTY_K);
/*
** Setup SwivelView mode.
*/
SED1374
X26A-G-002-02
Programming Notes and Examples
Issue Date: 99/04/27