摘要:
Pn=_crol_(Pn,n);Pn端口,n移动的位数,crol左移,c为char的简写Pn=_cror_(Pn,n);cror右移目的:实现LED灯左移一位——>LED灯右移一位——>LED灯左移两位——>LED灯右移两位——>结束(中间无延迟)#include<reg52.h>#include<intrins.h>#define uchar unsigned char#define uint unsigned intvoid delay(uint t);void main(void){uchar i,j,k,l;while(1){/*开机全亮 阅读全文
posted @ 2012-06-16 22:48
梦中人...
阅读(5109)
评论(0)
推荐(0)