A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 82
6.2.2 Demo all LCD functions: tsmi.c
Purpose: This demo program shows how to control iVIEW-100 LCD display.
It uses almost all the functions in mmi100.lib. You can learn how to
use the ‘page’ function to make different menu, how to show lamp
for light on & off, how to show BMP black/white picture on LCD…
Download files: For download files method, please refer to Chapter 3.3.
tsmi.exe
ee.bmp
i.bmp
kb.bmp
c.bmp
d.bmp
Lib included:
iVIEW.h & mmi100.h
Variables:
Name Type Default
Description
quit int 0 When quit=1, quit this program.
x int Trace the X character position of LCD. X
must between 1 and 16.
y int Trace the Y line position of LCD. Y must
between 1 and 8.
page int Store the page number when get the current
page number
c char For storing the input key value
LampON[8]
Static
uchar
Use array {0X00, 0X5A, 0X24, 0X42, 0X42,
0X24, 0X5A, 0X00} to figure out a lamp-on
icon
Program :
#include <iVIEW.H>
#include <mmi100.H>
void main()