Applying a PAUSE and RESUME feature in my Pneumatic Pick-and-Place Project

is that a school project?


I'd suggest you pick one of the numerous button library such as Button in easyRun or OneButton or Toggle or EasyButton or Bounce2, and study finite state machines to implement the code. Here is a small introduction to the topic: Yet another Finite State Machine introduction