A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 145
A.3.1 Type 1: Initial & close LCD
Function Description
InitLCD Initial LCD in the beginning, return 0 for true
CloseLCD Close LCD when finish, return 0 for true
ClrScrn Clear all display in LCD
InitLCD()
Func.: Initializing LCD
Syntax:
int InitLCD(void);
Header: #include ”mmi100.h”
Description:
This function enables LCD with default setting.
Shows text and graph simultaneously
Text : 16 characters a line by 8 lines (X=1~16, Y=1~8)
Graphic : 128 by 64 dots (X=1~128, Y=1~64)
1-line cursor
Return 0 for true
Example:
(Lcdin.c)
#include "mmi100.h"
#include "iview.h"
int main()
{
if(InitLCD()>0) /* initial LCD */
Print("\nSomething wrong");
else
{
Print("\r\nAfterLCDINIt");
ClrScrn(); /* clear all LCD display */
Print("\n\rAfterClearLCDscreen");
}
CloseLCD(); /* close LCD */
return 0;
}