Adding library'problem

but how could I do that delay inside the interrupt?

"delay" and "interrupt" are not friends.