I used the digitalRead function to read the value of the button. Depending on the button state, the servo and LED were either moving in steps and on or completely off.. I used the Write function for the servo to make it move in steps of one degree.

 

 

 

Tech Demo 1 from Evan Hill on Vimeo.