摘要: 作业1:数码管前三位数显示一个跑表,从000到999,之间以百分之一秒的速度运行,当按下key1时跑表停止,再次按下时跑表开始#include#define uint unsigned int#define uchar unsigned char sbit dula =P2^6;sbit wela = P2^7;sbit key1 = P3^7;uchar aa,flag,bai,shi,ge,tt;uint num,bb;void init();void keyscan();void delay(uint z);void display(uchar bai,uchar shi,uchar g 阅读全文
posted @ 2013-09-19 16:08 跨七海的风 阅读(292) 评论(0) 推荐(0) 编辑