Code including both knob and button function for servos