电路图:
程序完成功用:
逐次显现LED的一切字模。程序代码如下:
#include //包含一个51规范内核的头文件
char led_mod[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};//LED显现字模
void delay(unsigned int time){
unsigned int j = 0;
for(;time>0;time–)
}
void main(void) {
char i = 0;
while(1){
}
}