Demo of merging the code from two sketches

Do you think that it might help if you posted your combined program ?