delay the output! without delay the whole process

is there away i can delay the change of pin mode without delaying the processor!
if i use delay(1000);
it will delay the processor from performing the codes underneath it.

Look at the Blink Without Delay example.

What are you trying to delay? The subject line says one thing. Your post says something else.

The blink without delay example is where you need to start, in any case.

you can set a variable to the value of millis(), then make a loop with the code you want to run underneath. Every time you restart the loop, check if millis() is equal to or more than 1000 over the value you stored..

ie:

snapshot = millis()

while (snapshot + 1000 <= millis()) do
stuff
end while

trigger pin

so the code is basically pseudo-code, but you should get the idea. This only work if the 1000 is a bit flexible.. Or as said, check the blink without delay example..

yes this is what i have been searching for!
thanks alot