Epson Research and Development
Page 69
Vancouver Design Center
Programming Notes and Examples
S1D13704
Issue Date: 01/02/12
X26A-G-002-03
** 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_ (Y * Line_Width * BPP / 8) + (X * BPP / 8)
*/
pMem = (LPBYTE)MEM_ (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.
*