Main Loop Code - Epson S1D13503 Technical Manual

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

Advertisement

Page 58

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();
S1D13503
X18A-G-002-06
Downloaded from
Elcodis.com
electronic components distributor
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/01/30

Advertisement

Table of Contents
loading

Table of Contents