/* Here when the A4 port becomes 0x01 then led will turn on else led reamins off*/
#include"functions.h"
void setup()
{
init_f();
volatile char *input_f,x;
while(1)
{
input_f = 0x2f; // from DATA sheet
x = *input_f;
if(read_switch_on(x) == 1)
led_1_on();// for(volatile unsigned long i = 0;i<1000000;i++); // DEBOUNCING AND LONG PRESS (MAYBE)
else
led_2_on();// for(volatile unsigned long i = 0;i<1000000;i++); // DEBOUNCING AND LONG PRESS (MAYBE)
}
}