#include
#define LED P2
#define uint unsigned int
#define uchar unsigned char
uchar n;
Delay(uint c);
void main()
{
while(1)
{
for(n=7;n>0;n--)
{
LED=_crol_(LED,1);
Delay(50);
}
for(n=7;n>0;n--)
{
LED=_cror_(LED,1);
Delay(50);
}
}
}
void Delay(uint c)
{
uchar a,b;
for(;c>0;c--)
for(b=38;b>0;b--)
for(a=130;a>0;a--);
}