A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 44
Here is the content of Hello.c:
#include "iVIEW.H"
#include "mmi100.H"
int main()
{
InitLib();
Print("\n\rHello");
if(InitLCD()>0) Print("\n\rLCD wrong");
else
{
ClrScrn();
LcdPrintfAt(2,2,"Hello");
}
return 0;
}
Include these two headers to use
iVIEW
-
100
s user functions.
I
nitial iVIEW libaries.
Print “Hello” on PC screen.
Clear LCD screen first.
Initial iVIEW LCD, if fail,
print
LCD wrong
on PC.
Print “Hello” on LCD (2,2).
iVIEW-100’s LCD is a 16
characters(X) wide, 8 lines(Y)
high screen. (1,1) is on the left
top spot.