/* ========================================================================== */ /* */ /* lcdtxt.c */ /* (c) 2006 eva */ /* EX for user function: text & icon */ /* UnderLine, TextOutAt, DrawText, LcdPrintfAt */ /* */ /* ========================================================================== */ #include "mmi100.h" #include "iview.h" int main() { static uchar LampON[8] = {0X00, 0X5A, 0X24, 0X42, 0X42, 0X24, 0X5A, 0X00}; InitLib(); if(InitLCD()>0) Print("\nLCD wrong"); ClrScrn(); UnderLine(6, 2, 6, 1); /*underline the "ICPDAS"*/ TextOutAt(6, 2, "ICPDAS"); /*show char text*/ DrawText(6, 4, LampON); /*show unsigned char text*/ LcdPrintfAt(8, 4,"Hello"); /*show char text*/ IntOutAt(5, 5, 4, 2006 ); /*show inter number*/ RealOutAt(10,5, 4, 2 ,(float)2.0 ); /*show real number*/ lamp(8, 6, 1); /*show icon lamp, color=1*/ lamp(10, 6, 0); /*show icon lamp, color=0*/ return 0; }