How can I two sketches merge to 1 sketch?
mvg
Peter
How can I two sketches merge to 1 sketch?
mvg
Peter
The simple answer is to choose one of the files as your target, then copy stuff in from the other one into the space above setup(), into setup() and into loop(). Then resolve any conflicts like duplicate variable names and so on. Then run it and see if it works.
But the real answer is that you have to decide in your mind what it is that you want the resulting sketch to do, and program towards that. You might (for example) be merging the examples Blink and servo Sweep, and just making one sketch out of those will never work. It would require a re-think and a re-program to do everything with no delays, for() loops etc so as to give each part of the new sketch a fair share of the process.
So for a more meaningful answer you'll need to get more specific with your question.