mb-listener.c
//Interrupt fuction 1 for switch 1
Interrupt fuction 1 for switch 1
Interrupt fuction 1 for switch 1
void interruptFunc_1(void){
	printf("$Time: %f\n",(float)(clock()/1000000.0F)*1000);
	printf("Interrupt Occured 1\n");
	delay(interruptDelay);				
	boxStatus_1 = digitalRead(SWITCH_1);
	printf("Interrupt End 1\n");
	printf("$Time: %f\n",(float)(clock()/1000000.0F)*1000);
}
void interruptFunc_1 ( void ) { printf ( " \n " , ( float ) ( clock ( ) / 1000000.0F ) * 1000 ) ; printf ( " \n " ) ; delay ( interruptDelay ) ; boxStatus_1 = digitalRead ( SWITCH_1 ) ; printf ( " \n " ) ; printf ( " \n " , ( float ) ( clock ( ) / 1000000.0F ) * 1000 ) ; }
Interrupt fuction 1 for switch 1
Interrupt fuction 1 for switch 1
//Level of sensitivity of the interrupt(higher the delay less the sensitiveness)