MARK-方便改写与测试
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
void delay(j)
data uint j;
{
data uint i;
while(j--)
for(i=0;i<250;i++);
}
void main()
{
data uchar a=0xff;
while(1)
{
P0=~a;
delay(150);
}
}
#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
void delay(j)
data uint j;
{
data uint i;
while(j--)
for(i=0;i<250;i++);
}
void main()
{
data uchar a=0xff;
while(1)
{
P0=~a;
delay(150);
}
}