void setup() {
// put your setup code here, to run once:
volatile long i,j;
volatile char *out,*dir;
dir=0x30;
*dir=0xff;
out=0x31;
while(1){
*out=0x80;
for(j=0;j<400000;j++);
//*out=0x00;
for(i=7;i>=5;i--){
*out=1<<i;
for(j=0;j<50000;j++);
}
for(j=0;j<50000;j++);
for(j=0;j<400000;j++);
for(i=4;i>=0;i--){
*out=1<<i;
for(j=0;j<50000;j++);
}
for(j=0;j<400000;j++);
for(j=0;j<400000;j++);
for(i=7;i>=0;i--){
*out=1<<i;
for(j=0;j<50000;j++);
}
for(j=0;j<400000;j++);
}
}
void loop() {
// put your main code here, to run repeatedly:
}