//my first pushbutton function codes 19/03/24
#include "input_k.h";
void setup() {
  // put your setup code here, to run once:
 void set_portf_dir(void);
void set_portk_dir(void);

}

void loop() {
  // put your main code here, to run repeatedly:
  
  volatile char x,y;
  volatile long i=1,j;
              x=press_key();
              if((x & 0x01)==0x01)
              {
                for(j=0;j<100000;j++);
                if(i%2)
                {
                y=1;
                LED_ON(y);
                for(j=0;j<50000;j++);
                }
                else
                {
                  y=0;
                  LED_ON(y);
                  //for(j=0;j<50000;j++);
                }
                i++;
              }
  

}