Epson S1D13503 Series Technical Manual page 137

Dot matrix graphics lcd controller
Hide thumbs Also See for S1D13503 Series:
Table of Contents

Advertisement

if (val & 0x04)
Video |= (color << 4);
if (val & 0x02)
Video |= (color << 2);
if (val & 0x01)
Video |= color;
*pVideo++ = (unsigned char) Video;
CheckBank(pVideo, &bank);
pVideoFirstColumn += BytesPerScanLine;
}
pVideoStart += 2;
pVideoFirstColumn = pVideoStart;
}
break;
case 16:
color &= 0x0f;
while (*str != 0)
{
ch = *str++;
if ((ch < ' ') || (ch - ' ' > MAX_FONT-1))
ch = '.';
pFont = &font[ch - ' '][0];
for (y = 0; y < 8; ++y)
{
pVideo = pVideoFirstColumn;
Video = 0;
val = *pFont++;
//
// Since there are 16 colors/gray shades, each bit in the font
// will be represented in video memory as a four bit pixel.
//
if (val & 0x80)
Video |= (color << 4);
if (val & 0x40)
Video |= color;
*pVideo++ = (unsigned char) Video;
CheckBank(pVideo, &bank);
Video = 0;
if (val & 0x20)
Video |= (color << 4);
if (val & 0x10)
Video |= color;
*pVideo++ = (unsigned char) Video;
CheckBank(pVideo, &bank);
Video = 0;
if (val & 0x08)
S18A-G-002-02
S1D13503 Programming Notes and Examples
// Point to next character
2-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1d13503d00aS1d13503f00aS1d13503f01aS1d13503p00c

Table of Contents