What part are you having trouble with? There are example sketches in the IDE to sweep servos, and there are examples to read switches.
What part are you having trouble with? There are example sketches in the IDE to sweep servos, and there are examples to read switches.