基于指针的流水灯 作者: 时间:2016-11-25 来源:网络 加入技术交流群 扫码加入和技术大咖面对面交流海量资料库查询 收藏 #includecharcode msg[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};voiddelay(intt){for(;t!=0;t--);}voidmain(){unsignedchar*i,p;while(1){i=msg;for(p=0;p<8;p++){ delay(40000); P1=*(i++);// P1 = *(i + p);}}}
评论