内容简介:交替闪烁就是在循环中让两个LED端口交替高低电平。循环中加入延时。延时函数我用循环实现。题目没有要求精准延时,如精准需用中断。include define uInt unsigned int sbit D1=P2^0;sbit D2=P2^1;sbit S1=P include#defineucharunsignedcharuchartimes,led;sbitkey1=P1^0...
用户评论
havenhome