In this recipe, you will learn how to combine the use of the push buttons and slide switch to control multiple servos. Essentially, we will use the push buttons to control the angle of a specific servo. We will then use the slide switch to select which of the two connected servos we want to control.
This recipe builds on some of the past recipes and adds additional data structures and controls to manage the additional logic that is required to control multiple servos. This recipe will be very useful whenever you need to find ways to control more than one servo at a time.