用51单片机驱动led点阵屏
#include <reg51.h>
unsigned char hang[10]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
unsigned char tab_lie[10][8]={
{0xc3,0x99,0x99,0x99,0x99,0x99,0x99,0xc3},
{0xe7,0xc7,0xe7,0xe7,0xe7,0xe7,0xe7,0xc3},
{0xc3,0x99,0xf9,0xf3,0xe7,0xcf,0x9d,0x81},
{0xc3,0x99,0xf9,0xe3,0xe3,0xf9,0x99,0xc3},
{0xf3,0xe3,0xc3,0x93,0x93,0x93,0x81,0xf3},
{0x81,0x9f,0x9f,0x83,0xf9,0xf9,0x99,0xc3},
{0xe3,0xcf,0x9f,0x83,0x99,0x99,0x99,0xc3},
{0x81,0x99,0xf9,0xf3,0xe7,0xe7,0xe7,0xe7},
{0xc3,0x99,0x99,0xc3,0x99,0x99,0x99,0xc3},
{0xc3,0x99,0x99,0x99,0xc1,0xf9,0xf3,0xc7}};
void delayxms(unsigned char z)
{unsigned char n,m;
for(;z>=1;z--)
for(n=20;n>0;n--)
for(m=25;m>0;m--);
}
void main()
{ unsigned char k,j,i;
while(1)
{
for(k=0;k<10;k++)
{
for(j=0;j<50;j++)
{
for(i=0;i<8;i