cac bac oi!xem giup em cai code nay voi,em lap trinh hien thi chu A tren led matran ma khong hieu sao no hien van sai.cac bac xem giup nha
#include<reg51.h>
#include<stdio.h>
void delay(long time)
{
while(time--);
}
int n;
unsigned char manghang[8]={0x3f,0x7f,0x88,0x88,0x7f,0x3f,0,0};
unsigned char mangcot[8]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};
void main()
{
while(1)
{
for(n=0;n<=7;++n)
{
P3=manghang[n];
P0=mangcot[n];
}
}
}
em tat hai cot led cuoi ma sao no van sang.khong hieu nua.mong moi nguoi chi ro ho em
#include<reg51.h>
#include<stdio.h>
void delay(long time)
{
while(time--);
}
int n;
unsigned char manghang[8]={0x3f,0x7f,0x88,0x88,0x7f,0x3f,0,0};
unsigned char mangcot[8]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};
void main()
{
while(1)
{
for(n=0;n<=7;++n)
{
P3=manghang[n];
P0=mangcot[n];
}
}
}
em tat hai cot led cuoi ma sao no van sang.khong hieu nua.mong moi nguoi chi ro ho em
Comment