Epson S1D13704 Technical Manual page 165

Embedded memory color lcd controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
**
*/
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.
**
*/
pMem = (LPBYTE)MEM_OFFSET + (y * 320 * BitsPerPixel / 8) + 0;
for (x = 0; x < 100; x+=2)
{
}
}
/*
** Pause here.
*/
getch();
/*
** Clear the display, and all of video memory, by writing 40960 bytes of 0.
Programming Notes and Examples
Issue Date: 01/02/12
values low should the pins get configured as outputs.
Pointer = MEM_OFFSET + (Y * Line_Width * BPP / 8) + (X * BPP / 8)
*pMem = 0x44;
pMem++;
*
/* Draws 2 pixels with LUT color 4 */
Page 69
S1D13704
X26A-G-002-03

Advertisement

Table of Contents
loading

Table of Contents