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