Page 58
Epson Research and Development
Vancouver Design Center
S1D13503
Programming Notes and Examples
X18A-G-002-06
Issue Date: 01/01/30
7.1 Main Loop Code
//-------------------------------------------------------------------------
//
// FUNCTION: main()
//
// DESCRIPTION: Start of demo program.
//
// INPUTS: Command line arguments.
// RETURN VALUE: None.
//
//-------------------------------------------------------------------------
void main(char argc, char **argv)
{
int ch;
CheckArguments(argc, argv);
printf("Initializing\n");
Initialize();
SetDisplay(OFF);
ClearLCDScreen();
switch (GetID(PanelPortAddr))
{
case ID_13502:
printf("Detected S1D13502.\n\n");
Quit();
break;
case ID_13502:
printf("Detected S1D13502.\n\n");
Quit();
break;
case ID_13503:
printf("Detected S1D13503.\n");
break;
default:
printf("ERROR: Could not detect chip.\n\n");
Quit();
break;
}
ShowMenu();
while ((ch = getch()) != ESC)
{
switch (ch)
{
case '1':
ShowRegisters();
electronic components distributor