Can you help me modify my code?

I briefly looked at your code and noticed in the first BEGIN/REPEAT block you are moving one servo at a time with each button press. You might try removing the first and third “frame” subroutine calls from the loop. Like so:

main_loop:
begin
4000 1 servo
8000 2 servo frame
8000 1 servo
4000 2 servo frame
repeat

That way both servos (channels 1 & 2) will move each time you press the button. I also noticed that the lines below the “Sequence 2” comment will never run, but it seems like you might just be keeping your original code there as reference.

As for your goal of having a single button to do two different things, you could use something like a state variable to keep track of the button presses and execute the associated sequence based on that variable. To get an idea of how to do that, you can look at some example code using a state variable in this forum post.

By the way, there is no policy on our forum against offering to pay someone to help you with your project.

- Amanda