void setup() {
// put your setup code here, to run once:
volatile char *dirf,*dirk;
dirf=0x30;
*dirf=0x0F;
dirk=0x107;
*dirk=0x0F;
volatile char *outk,*outf;
volatile long i;
outk=0x108;
outf=0x31;
*outk=0x02;
*outf=0x02;
for(i=0;i<1000000;i++);
*outk=0x02;
*outf=0x01;
delay(1000);
*outk=0x01;
*outf=0x01;
delay(1000);
*outk=0x01;
*outf=0x02;
delay(1000);
*outk=0x02;
*outf=0x02;
delay(1000);
}
void loop() {
// put your main code here, to run repeatedly:
}