You might also, if I follow your intent, use an AND gate to combine PWM and I/O into one PWM modulated blinking output.