Servo signal with external interrupts

Why my code don’t work (No servo signal)?

First of all, don’t call print() in a callback, you shouldn’t call any function that allocates memory in a callback, try turning on an LED instead. Second, the while loop is probably changing the pulse_width back to 1300 not sure what you’re trying to do.