mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 06:35:35 +08:00
46 lines
836 B
HTML
46 lines
836 B
HTML
<h1>标准库函数 - DispBCD</h1>
|
||
|
||
|
||
<p>原型:extern void DispBCD(int);</p>
|
||
|
||
<p>用法:#include <system.h></p>
|
||
|
||
<p>功能:显示七段数码管数字</p>
|
||
|
||
<p>说明:调用后在屏幕左侧图标区显示对应数字。</p>
|
||
显示最大值为999。
|
||
|
||
举例:<pre><code class="language-c">
|
||
|
||
// DispBCD.c
|
||
|
||
#include <system.h>
|
||
|
||
main()
|
||
{
|
||
int i;
|
||
|
||
i=9;
|
||
clrscr();
|
||
printf("Now Display 9");
|
||
DispBCD(9);
|
||
getchar();
|
||
|
||
i=99;
|
||
clrscr();
|
||
printf("Now Display 99");
|
||
DispBCD(99);
|
||
getchar();
|
||
|
||
i=999;
|
||
clrscr();
|
||
printf("Now Display 99");
|
||
DispBCD(999);
|
||
getchar();
|
||
|
||
return 0;
|
||
}
|
||
|
||
</code></pre>相关函数:无
|
||
|