mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-10 16:33:23 +08:00
v0.0.2
This commit is contained in:
@@ -1,45 +1,45 @@
|
||||
<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>相关函数:无
|
||||
|
||||
<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>相关函数:无
|
||||
|
||||
|
Reference in New Issue
Block a user