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

Hi, thanks for the reply.

I need three things to happen when a toggle switch on pin #2 closes and opens:

  1. Produce TWO "high" pulses lasting 1 second each on pin #12.
  2. Delay ONE second.
  3. Produce ONE "high" pulse lasting 1 second on pin#13.

All three in that order, with one toggle of a switch, so, It will happen every time the switch is ON and every time the switch is OFF.

As previously said, I have tried the "Edge detector sketch" and modified some variable, but it did not work.
Thank you! cc