Epson S1D13704 Technical Manual page 158

Embedded memory color lcd controller
Table of Contents

Advertisement

Page 62
{
printf("\nERROR: Could not register S1D13704 device.");
exit(1);
}
/*
** Get the product code to verify this is an S1D13704.
** NOTE: If the S1D13704 design is modified then the
**
product identification change. Additional IDs
**
will have to be checked for.
*/
seGetId(Device, &ChipId);
if (ID_S1D13704F00A != ChipId)
{
printf("\nERROR: Did not detect an S1D13704.");
exit(1);
}
/*
** Initialize the S1D13704.
** 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.
*/
S1D13704
X26A-G-002-03
*
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/12

Advertisement

Table of Contents
loading

Table of Contents