
基于51单片机漩涡流水点阵的设计-#include
typedefunsignedcharuchar;
typedefunsignedintuint;
typedefunsignedlongulong;
sbitADDR0=P1^0;
sbitADDR1=P1^1;
sbitADDR2=P1^2;
sbitADDR3=P1^3;
sbitENLED=P1^4;
ucharimage[8]={
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
};

发送端程序如下:#includereg52.h>#includeintrins.h>#includemath.h>typedefunsignedcharuchar;typedefun

#includereg52.h>#includemath.h>typedefunsignedcharuchar;typedefunsignedintuint;sbitKEY1=P3^4;s

h>includestdioh>typedefunsignedcharuchar;sbitdin=P1^0;sbitclk=P1^1;sbitload=P1^2;voidsend(ucha

includereg51h>typedefunsignedintuint;typedefunsignedcharuchar;ucharsmgcode[]={0xc0,0xf9,0xa4,0xb0

includereg52h>includeintrinsh>typedefunsignedcharuchar;typedefunsignedcharuint;***************

includereg51h>typedefunsignedcharuchar;sbitsignal=P3^0;ucharcounter;voidmain(void){TR0=0;禁止T0TMOD