void setup() {
  // put your setup code here, to run once:
  volatile char *dirf,*dirk;
  volatile char *outf,*outk;
  volatile long i;
  dirf = 0x30;dirk = 0x107;
  outf = 0x31;outk = 0x108;
  *dirf = 0x01;*dirk = 0x03;
  *outf = 0x01;
  while(1){
    *outk = 0x01;  //by using portk the leds controlled
    for(i=0;i<100000;i++);
    *outk = 0x02;  //led2
  for(i=0;i<100000;i++);
  }
}

void loop() {
  // put your main code here, to run repeatedly:
  
}