
Page 52
Epson Research and Development
Vancouver Design Center
SED1352
Programming Notes and Examples
X16-BG-007-04
Issue Date: 98/10/08
6.3 Advanced Functions
#define VIRTUAL_X (360)
#define VIRTUAL_Y (360)
//-------------------------------------------------------------------------
//
// FUNCTION: ShowRegisters()
//
// DESCRIPTION: Shows the contents of the SED1352 registers.
//
// INPUTS: None.
// RETURN VALUE: None.
//
//-------------------------------------------------------------------------
void ShowRegisters(void)
{
static unsigned char x;
printf("SED1352 Registers: ");
for (x = 0; x < 16; ++x)
printf("%02X ", ReadRegister(x));
printf("\nSED1352 Look-Up Table: ");
for (x = 0; x < 16; ++x)
{
WriteRegister(0x0e, x);
printf("%02X ", ReadRegister(0x0f));
}
ShowMenu();
}
//-------------------------------------------------------------------------
//
// FUNCTION: GrayShadeBars()
//
// DESCRIPTION: Displays one set of vertical bars, each with a
// different gray shade.
//
// INPUTS: None.
//
// RETURN VALUE: None.
//
//-------------------------------------------------------------------------
void GrayShadeBars(void)
{
static unsigned int val, x;
static unsigned char _far *pVideo;