Help with a program capable of producing two pulses lasting 1 second each

Look at the demo Several Things at a Time. The code that causes the LEDs to flash could be adapted to produce your 1 second pulses.

...R