LED顯示字模
程序實現(xiàn)功能:
逐次顯示LED的所有字模。程序代碼如下:
#include //包括一個51標準內(nèi)核的頭文件
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){
}
}
評論