Matriz 973

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

#include <reg51.

h>
#include"delay.h"
unsigned char i,j,k,m,n;
unsigned char code tabla[]={0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, //espacio
0x48,0x2B,0x1F,0x2F,0x48,0x0,0x0,0x0,0x0,//
0x7F,0x01,0x02,0x1C,0x02,0x01,0x7F,0x0,0x0,//M
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0};
void main (void)
{
P1=1;
while(1)
{
while(j<26)
{
for(m=0;m<20;m++)
{
for (i=0;i<8;i++)
{
P2=tabla[k];
delay_ms(1);
P1=P1<<1;
k++;
}
P1=1;
k=n;
}
j++;
n++;
}
j=0;
n=0;
}
}

You might also like