Need help with interrupt

Yes, delay uses millis which uses timer 0

This is not intended top be impolite but if you are not using the Arduino IDE or any arduino functions, your questions may me more suited for the avrfreaks forum.