English
Language : 

SED1374 Datasheet, PDF (165/420 Pages) Epson Company – SED1374 Embedded Memory Color LCD Controller
Epson Research and Development
Vancouver Design Center
Page 69
**
values low should the pins get configured as outputs.
*/
SET_REG(0x19, 0x00);
/*
** Register 1Ah - Scratch Pad - set to 0
*/
SET_REG(0x1A, 0x00);
/*
** Register 1Bh - SwivelView Mode - set to 0 - disable SwivelView mode
*/
SET_REG(0x1B, 0x00);
/*
** Register 1Ch - Line Byte Count - set to 0 - Not used by landscape mode
*/
SET_REG(0x0C, 0x00);
/*
** Register 1Fh - TestMode - set to 0
*/
SET_REG(0x1F, 0x00);
/*
** Draw a 100x100 red rectangle in the upper left corner (0,0)
** of the display.
*/
for (y = 0; y < 100; y++)
{
/*
** Set the memory pointer at the start of each line.
** Pointer = MEM_OFFSET + (Y * Line_Width * BPP / 8) + (X * BPP / 8)
*/
pMem = (LPBYTE)MEM_OFFSET + (y * 320 * BitsPerPixel / 8) + 0;
for (x = 0; x < 100; x+=2)
{
*pMem = 0x44;
/* Draws 2 pixels with LUT color 4 */
pMem++;
}
}
/*
** Pause here.
*/
getch();
/*
** Clear the display, and all of video memory, by writing 40960 bytes of 0.
Programming Notes and Examples
Issue Date: 99/04/27
SED1374
X26A-G-002-02