阅读(2547) (0)

textmode

2015-11-11 16:18:12 更新

 原型:extern void textmode(int mode);
             
 用法:#include <system.h>
 
 功能:设定屏幕模式
 
 说明:请参见UpdateLCD中关于mode的含义。
       textmode会影响屏幕上已有内容的显示。
   
 举例:

     // textmode.c
     
     #include <system.h>
     main()
     {
       int c;
       clrscr();
       textmode(0x00);
       printf("Hello, world!\n");
       getchar();
       
       textmode(0xE0);
       printf("Hi, this is the next mode\n");
       
       getchar();
       return 0;
     }