Epson S1D13503 Technical Manual page 181

Graphics lcd controller
Hide thumbs Also See for S1D13503:
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
FP_OFF(pVideo) = (unsigned int) ((rand() * 0xffffL) / RAND_MAX);
val = rand() % 50;
switch (PanelGrayLevel)
{
case 16:
color = (unsigned char) (rand() % 16);
break;
case 256:
color = (unsigned char) (rand() % 256);
break;
}
// The last character in the font table is a solid block character.
ShowText(pVideo, bank, "\x80", color);
}
ShowBorders();
//
// Move virtual display from (0, 0) to (MaxX, 0)
//
MaxX = (unsigned int) (VIRTUAL_X - PanelX);
MaxY = (unsigned int) (VIRTUAL_Y - PanelY);
SetDisplay(ON);
for (x = 0; x <= MaxX; ++x)
{
SetStartAddress(x, 0);
Delay(DELAY_SHORT);
}
for (y = 0; y <= MaxY; ++y)
{
SetStartAddress(MaxX, y);
Delay(DELAY_SHORT);
}
for (x = MaxX; x > 0; --x)
{
SetStartAddress(x, MaxY);
Delay(DELAY_SHORT);
}
for (y = MaxY; y > 0; --y)
{
SetStartAddress(0, y);
Delay(DELAY_SHORT);
}
SetStartAddress(0, 0);
Programming Notes and Examples
Issue Date: 01/01/30
Downloaded from
Elcodis.com
electronic components distributor
Page 85
S1D13503
X18A-G-002-06

Advertisement

Table of Contents
loading

Table of Contents