#include<lpc21xx.h>
void delay();
int main()
{
int i;
IO0DIR=0XFFFFFFFF;
while(1)
{
IO0SET=0XFFFFFFFF;
delay();
IO0CLR=0XFFFFFFFF;
delay();
}
}
void delay()
{
int i;
for(i=0;i<1000000;i++);
}
void delay();
int main()
{
int i;
IO0DIR=0XFFFFFFFF;
while(1)
{
IO0SET=0XFFFFFFFF;
delay();
IO0CLR=0XFFFFFFFF;
delay();
}
}
void delay()
{
int i;
for(i=0;i<1000000;i++);
}
No comments:
Post a Comment