mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 23:14:06 +08:00
37 lines
793 B
HTML
37 lines
793 B
HTML
<h1>标准库函数 - textmode</h1>
|
||
|
||
|
||
<p>原型:extern void textmode(int mode);</p>
|
||
|
||
<p>用法:#include <system.h></p>
|
||
|
||
<p>功能:设定屏幕模式</p>
|
||
|
||
<p>说明:请参见UpdateLCD中关于mode的含义。</p>
|
||
textmode会影响屏幕上已有内容的显示。
|
||
|
||
举例:<pre><code class="language-c">
|
||
|
||
// 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;
|
||
}
|
||
|
||
</code></pre>相关函数:<a href="UpdateLCD.html">UpdateLCD</a>
|
||
|