Help with combining 2 sketches together.

OP, please post your code.