Combining Codes

It would be helpful to see what you have tried. Can you please post your combined code ?
You will almost certainly need to stop using delay() because it holds up the program and will not let anything else happen until the delay finishes. Have a look at this http://arduino.cc/en/Tutorial/BlinkWithoutDelay for some ideas.