uTools-Manuals/docs/c/textmode.html
2019-04-21 11:50:48 +08:00

37 lines
793 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1>标准库函数 - textmode</h1>
<p>原型extern void textmode(int mode);</p>
<p>用法:#include &lt;system.h></p>
<p>功能:设定屏幕模式</p>
<p>说明请参见UpdateLCD中关于mode的含义。</p>
textmode会影响屏幕上已有内容的显示。
举例:<pre><code class="language-c">
// textmode.c
#include &lt;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>