单片机8*8LED点阵控制程序

2025-03-10 20:02:02
推荐回答(1个)
回答1:

这个最多显示一个汉字,还很模糊,我给你发个能显示简笔画少点的程序吧
#include
#include
#define uint unsigned int
#define uchar unsigned char
sbit WL=P2^0;
sbit DL=P2^1;
uchar a;
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}
uchar code table1[]=;
uchar code table2[]=;
void main()
{
WL=1;
P1=0xff;
WL=0;

while(1)
{
for(a=0;a<8;a++)
{
P0=table1[a];
P1=table2[a];
delay(2);
}
}

}