内容简介:采用中断方式,程序如下:include include define uchar unsigned char sbit button = P3^2;uchar press = 0;uchar luishui = 0xfe;void Delay(uchar z){ uchar x, y;for(x = z; x > 0 1、创建项目文件。2、按键:S1=P3^2,点亮: led=P1^5。3...
用户评论
havenhome