Please help with debugging...

There is only one way to combine sketches

  1. Understand what the first sketch does and why it does it.

  2. Understand what the second sketch does and why it does it.

3 Write a new sketch that does what you want!

Mark