Assistance in diploma. Question programming the Arduino mega

You can't if you uses delay(). Look at the blink without delay example.

Mark